crontab not executing all lines

Posted by kiasecto on Server Fault See other posts from Server Fault or by kiasecto
Published on 2012-10-17T23:50:10Z Indexed on 2012/10/18 5:07 UTC
Read the original article Hit count: 427

Filed under:

I have a sudo crontab like this to sync time:

# m h dom mow dow command

0 6 * * * ntpdate 10.3.3.3 >> /var/mylog/ntp.log
0 7 * * * /var/mylog/backup.sh >> /var/mylog/backup.log

The problem I am having is that the first line (ntpdate) never seems to execute. If I run it manually with sudo that line works. cron does run the backup.sh at the 7, but it never executes then ntp sync at 6. The syslog doesn't seem to show anything.

System is Ubuntu 10.04 LTS.

© Server Fault or respective owner

Related posts about cron