> >> I want to use cron to run a util to check the time via the net and
> >> set my clock when/if there's a difference in the hardware clock.
> > Hi Larry, This one works for me. This sets the OS time and the BIOS
> > time.
> > rdate -s clock-1.cs.cmu.edu && hwclock --systohc
> Another command that does the same job is ntpdate. And why use cron
> when the only time you'll want it to run is when you connect? What I
> did was create /etc/ppp/ip-up.local which contains
> ntpdate ntp0.freeserve.net && hwclock --systohc
> The ip-up.local script is called from /etc/ppp/ip-up which is run
> whenever ppp connects to the net. cron would be of more use if you were
> connected to a LAN with an NTP server.
To see if it is on or off, use the command adjtimex --print and
look at the value of "status". If the "64" bit of this number
(expressed in binary) equal to 0, 11 minute mode is on.
Otherwise, it is off.
and I do
$ /sbin/adjtimex -p
[...] status: 64
which makes me wonder what the English of the man page is trying to
say. Does "status:64" mean the 11 minute thing is on or off?
by the way, the The Clock Mini-HOWTO looked promising, but
seemed not to tell us dummies exactly what to do simplewise.
I installed the ntp rpm from the 2nd mandrake 7.2 CD
and notices that it doesn't put its man pages on the system, but one can dig
out of its 'doc' directory... as seen in rpm -ql ntp
www.geocities.com/jidanni E-mail: restore ".com." ?n|
Tel:+886-4-5854780; starting in year 2001: +886-4-25854780