> 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

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

Reply via email to