Crontab size limit

cron

Is there a limit to the number of entries in a user's crontab? I have a personal crontab with ~100 entries, and I just added a job to it that does not appear to be running. I can see in syslog when cron launches all the other jobs, but not this last one.

This is ubuntu's default vixie cron.

Best Answer

There doesn't appear to be a documented limit to the number of crontab entries allowed. So, short of checking the source code to the specific version you're using, perhaps the BUG entry in the crontab manpage could be helpful:

Although cron requires that each entry in a crontab end in a newline character, neither the crontab command nor the cron daemon will detect this error. Instead, the crontab will appear to load normally. However, the command will never run. The best choice is to ensure that your crontab has a blank line at the end.