John Kofinas wrote:
> 
> I use rdate once in a while to set my computers clock, but that is a manual
> approach. Is there any automated approach to this?
> 
> Thanks
> John


Well, there are several.  The nicest I have seen is in
DrakConf/Linuxconf under date and time--it basically calls rdate
and hwclock to make things work

But if you want to establish something to keep drift minimal....

#----------------------------------------------begin here
#!/bin/sh
rdate -s tock.orst.edu
hwclock --systohc
#----------------------------------------------end here

You could store this tiny script somewhere as a text file, make
it executable, and call it from /etc/rc.local or set it as a cron
job to be executed hourly or every few minutes or however you
like.  If you use webmin, use the graphic interface from netscape
to login to your own machine as 
http://127.0.0.1:1000 and select the cron jobs and put the code
"rdate -s (yourfavoritetimeserver); hwclock --systohc" (without
the quotes) right in the single line webmin gives you for the job
and specify how often and when it should be run.

Civileme


-- 
Remember that if it is done on networks, it may occur on
your host which is a network unto itself.

Reply via email to