Question Locked

Linux Auto Time Synch

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am not having much success and maybe some Linux fanatics could give me a little helping hand.

I am trying to find/make a simple little script to use on networked Linux PCs to the Internet that will synch the date/time to the time zone the PC is located in.

I am using Red Hat Linux 5.2, 7.3 and Linux Fedora 6 and 7.

Something simple to run in the background from crontab.

Thank you for any help.

Bless.

4 replies

by deity_chooch

I'm not sure exactly what you're looking for here, but NTP (ntpd) will synchronize your computer's clock to a server of your choosing (there are some default time servers out there for your use as well).

If you are looking for a way to get the computer to change its time zone based on its geographic location, I think you're up a creek. I don't know of any applications that can do that at the moment, although if you had a GPS device hooked up to it and could get some information from the GPS (via SNMP?), you might be able to make a script that changes the timezone file based on output from the GPS.

by borginva

Maybe not time zone, but this NTP is a good start for me to look into getting them to synch times.

Thank you!

by neon samurai

All my various machines pull there time from ntp.org during boot, even my win32 boots. It shouldn't be hard to throw the ntp sync command into a cron script.

I had been considering having my machines pull there times from the router since it also updates from ntp.org (dd-wrt is good stuff) which sounds more like what your after. I'll try to remember to check back to this thread when I finally get the time (no pun intended) to set it up though.

This discussion is closed to new replies.