Sunday, January 24, 2010

Crontab: unexpected end of line | Unix Errors

crontab unexpected errorTech Blog - The error "crontab: unexpected end of line" is a very common error, and it usually just mean there is a blank line on your crontab file, fixing it is just a matter of opening your crontab file using "crontab -e" command and looking for the blank lines, or use the "crontab -l" below see the content of your crontab file.


For example, in the following crontab file there is a blank line between the two cron jobs which has a red text now..

$ crontab -l
# The root crontab should be used to perform accounting data collection.
#
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
#
10 1 * * 0,4 /etc/cron.d/logchecker
16 3 * * 0 /usr/lib/fs/nfs/nfsfind
(DELETE THIS LINE)
30 4 * * * /usr/local/bin/disk_check,sh
;;;;
;;;
;;
;

hope this help!

Check out other pages:

No comments:

For suggestion and concerns E-mail