Originally Posted by Ambrose
Hi
I've added this line to /etc/crontab, the system wide crontab file.
0 0 * * * root /usr/sbin/ntpdate -o 1 tock.usno.navy.mil
NTPDate sync's my machine's time with the above server's time.
The next line in the same file is:
5 0 * * * root date | mail root@localhost
This e-mails me the time
So, after the time is sync'd, I get an e-mail. Perfect!
The problem is, I get an e-mail with the date at 0:00, and another one at 15:00. I've tested this with other lines in the /etc/crontab file ("echo "test at noon" |mail) and again, I get two e-mails.
Anyone else have this problem?
Anyone know how to stop this?
When I started crond, I just did "sudo /etc/init.d/cron start"
Thanks,
- Ambrose