Re: Not keeping correct time
Shaya Potter writes:
Shaya> I just noticed that my linux box dosen't seem to be keeping correct
Shaya> time.
File that under "advantages of being IBM PC compatible" :-)
Shaya> Does anyone know of an efficient way to make my linux box keep
Shaya> correct time?
I have these two lines in a script that cron runs nightly for root
netdate tcp <hostname_of_a_timeserver>
clock -u -w
Netdate is in netstd, you already have it. I am sure that you can find a
timeserver in your domain, if not, pointers to do them are in the xntp doc.
Afterwards, clock -u -w writes (-w) the correctly set time into the bios
using GMT (-u) time.
--
Dirk Eddelb"uttel http://qed.econ.queensu.ca/~edd
Reply to: