[NTLUG:Discuss] ntpdate -vs- cron
lee@brave.com
lee at brave.com
Fri Oct 27 10:12:40 CDT 2000
On Fri, 27 Oct 2000, Egome wrote:
> ntpdate[3103]: the NTP socket is in use, exiting
>
>
> I've tried sending the output to /dev/null, ( /usr/sbin/ntpdate
> time.nist.gov >> /var/log/ntpdate.log > /dev/null ) but it still get's
> emailed to me.
>
> Why does the command work from the command line but not as a cron job?
have you tried using /usr/sbin/ntpdate -s in your cron script?
my time.sh cron file looks like this:
#!/bin/bash
/usr/sbin/ntpdate -s time.nist.gov
and it works fine. RedHat 6.2, btw.
More information about the Discuss
mailing list