Newsgroups: linux.redhat.misc
>Anyone know of Linux software that will connect to an atomic clock and >synchronize the PC's clock with it? I need one that will work from the >command line in a cron job.
rdate -p -s 132.163.135.130
will link you to the National Institute of Standards & Technology and sync you with their atomic clock. If you add:
132.163.135.130 nist
to your /etc/hosts file you can shorten it to:
rdate -p -s nist
tom.hoffmann@…
What you really want to use is ntp. It might look intimidating, but it's actually quite easy to set up. You run the ntpd which queries a public network time server every at regular intervals (typically 128 seconds) as long as you're connected to the internet. As a matter of netiquette, you should sync to a secondary time server; you're box isn't important enough to sync to a primary time server or to the NIST or USNO clock.
If you're using redhat, don't use the RPM that came with 7.0, but find a more recent version from rpmfind.net (I'm using ntp-4.0.99k-1), or compile from source.
Everything you need to know is at http://www.eecis.udel.edu/~ntp/