Web Hosting Talk







View Full Version : Sync time with external server


webfors
01-10-2001, 06:39 PM
My linux box at home just hates to keep the right time :).

Anyone know what server I can use to set my time to. And, what's the command again? And should I set this up as a cron job to sync the time every hour?

jtan15
01-10-2001, 06:45 PM
Try adding this line to your crontab. This will keep you up with Eastern standard time. Hope this helps you. :)

29 * * * * /usr/sbin/netdate time.jtan.com >/dev/null

webfors
01-10-2001, 11:01 PM
Excellent. Thanks Vincent!! I had to install netdate, but once I did this, it works great.

You don't need the >/dev/null though I don't think. Is there a reason you have it?

allan
01-11-2001, 12:01 AM
You can find a list of public NTP servers at:

http://www.eecis.udel.edu/~mills/ntp/servers.html

allan

webfors
01-11-2001, 12:07 AM
Allan,

would I just use netdate as above with these servers?

allan
01-11-2001, 12:10 AM
Originally posted by tabernack
Allan,

would I just use netdate as above with these servers?

Exactly. Not that there is anything wrong with using the jtan server, I just didn't want 30 million WHT viewers suddenly syncing their server clocks with the one server :).

allan

jtan15
01-11-2001, 05:35 PM
Originally posted by tabernack
Excellent. Thanks Vincent!! I had to install netdate, but once I did this, it works great.

You don't need the >/dev/null though I don't think. Is there a reason you have it?



No problem. Yes, you do not need the </dev/null. I just keep it there so if the server gives any output, it sends it right to the trash, as I don't need it. :)

CRego3D
01-11-2001, 05:48 PM
Allwats learning something new :)

etLux
01-12-2001, 02:23 AM
Ah! Thanks for that once, Vince.

webfors
01-12-2001, 09:21 AM
Hi Vincent, every now and then (about 2-3 times a day) I get:

Connection with udp to time.jtan.com failed.

From the cron daemon. Just thought I'd let you know.

webfors
01-12-2001, 09:22 AM
OOOps, nevermind, it was my internet access. :blush: Was intermittent the past couple of days. Didn't notice sine I've been working so much.

jtan15
01-12-2001, 04:19 PM
No problem guys. Glad I could help! :)