cron job on ubuntu
I have a porblem running cron job on ubuntu-9.10
I have setup a cron job as follows :
1 0 * * * <my_command>
which should run at 00:01 AM everyday.
To test this I am setting the system time as follows :
date --set="2010-12-28 23:59:45"
Date is getting set properly, but cron job is not getting executed at 00:01AM.
If I restart 'cron' I see following log in /var/log/syslog :
Dec 28 13:20:53 v-sys2 init: cron main process (10015) killed by TERM signal
Dec 28 13:20:53 v-sys2 cron: (CRON) INFO (pidfile fd = 3)
Dec 28 13:20:53 v-sys2 cron: (CRON) STARTUP (fork ok)
Dec 28 13:20:53 v-sys2 cron: (CRON) INFO (Skipping @reboot jobs -- not system startup)
If I give the command :
$ logger hi
/var/log/messages also show "Dec 28 13:24:00" timestamp.
Why is there difference in the time shown by 'date' command and the timestamp in the syslog/messages files?
Last edited by girish_hilage; 01-04-2011 at 03:32 AM.