What's wrong with this picture?

Here is root's crontab:

10 3 * * * ntpdate ntp.public.otago.ac.nz
10 3 * * * touch ~ame/rootwashere

The first line is supposed to update the time every day at ten past three 
in the morning, local time.  I have run this command at the command line 
(as root) and it does exactly the right thing.  When it is in a cron job it 
doesn't do anything.  I know this because if I leave it a week and enter 
the command again my clock is corrected by a large amount.

To check whether cron itself was working I added the second line.  I expect 
the timestamp on the file 'rootwashere' in my home directory to be 03:10 
that day every day I look at it, and it is.

So, cron seems to be working and doing stuff at 03:10.  ntpdate works from 
the command line.  Why does ntpdate from root's crontab not appear to work?

Thanks,

Andy

Reply via email to