I have put the following in /etc/crontab.

11 18   * * *   root    /usr/bin/rdate -s 192.168.1.1
12 18   * * *   root    /sbin/hwclock --systohc

192.168.1.1 is an internal timeserver (tardis 2000)

I see an entry in syslog
Jan 29 18:11:01 hanroute /USR/SBIN/CRON[16910]: (root) CMD (
/usr/bin/rdate -s 192.168.1.1)
Jan 29 18:12:01 hanroute /USR/SBIN/CRON[16913]: (root) CMD (
/sbin/hwclock --systohc)

BUT the system clock is not corrected.  If I issue the command at the
prompt it always works but it does not work as a cron job.  I have
tried this with various time servers and it always works at the prompt
but never in cron.
rdate is a link to busybox

Any ideas how to make this work with cron?

Victor McAllister



_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to