[CLUE-Tech] Synching time shell script, where to put it to autosynch?

Kevin Cullis kevincu at orci.com
Sun Feb 10 10:05:45 MST 2002


Jed,

Here it is:

if netdate -v tcp time.nist.gov; then
   hwclock -w
fi

Per Jim Ockers comment last May concerning this (again, thanks Jim),
I've got this running now, but where to place it so that I don't have to
run it manually.  A friend suggested putting it in my home directory and
then linking it to cron.daily or ip-up scripts.  I don't know enough to
decided and wanted peoples opinions. I guess the idea is that a regular
synching would be more accurate than an infrequent one, i.e. montly or
weekly versus daily since I might not get online daily or too many times
daily to keep consistency in the measurement.  So, any ideas?

Kevin

"Jed S. Baer" wrote:
> 
> On Sat, 09 Feb 2002 22:17:18 -0700
> Kevin Cullis <kevincu at orci.com> wrote:
> 
> > Hi all,
> >
> > I've got a shell script that I now have running, but I'd like to put it
> > either in a cron job such as daily, or weekly OR, it's been suggested to
> > put it in ip-up script. What are the arguments for and against either
> > one, any suggestions?
> 
> Well, what's it do? Synch your clock to a time server? I put my ntp start
> in ip-up.local, and my ntp stop in ip-down.local (err, whatever it's
> called).



More information about the clue-tech mailing list