You would think so, but for some reason no... I've just tried this out, and ntpdate doesn't work from crontab even with the full path. May have something to do with the age of the distro on that machine, it's RH 6.2...
Dunno, I've left it as one of those 'just because it is' things until I get around to upgrading the machine. It only acts as an NFS server + DHCPD + caching DNS + ntpd machine so it's not really an issue, and it's inside two layers of firewalling. Cheers, Chris On Tue, 2003-10-07 at 17:59, Volker Kuhlmann wrote: > > in the root cron: (Couple of times a weeek, at 2:06.. Dunno why) > > 2 6 * * 0,4 /root/cron/synctime > > > > The script: > > #!/bin/bash > > ntpserver="ntp.public.otago.ac.nz" > > > > /usr/sbin/ntpdate $ntpserver > > Uhhhm, which of course is 200% identical to > > 2 6 * * 0,4 /usr/sbin/ntpdate ntp.public.otago.ac.nz > > It's not the script which fixed it, it's the /usr/sbin! > > Alternatively, you could set a decent path for all your cron jobs and be > done with it: > > PATH=/sbin:/usr/sbin:/bin:/usr/bin > 2 6 * * 0,4 ntpdate ntp.public.otago.ac.nz > * * * * * more jobs here > > Volker
