[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how do you set your system clock from a remote time server?



On Sat, Apr 22, 2000 at 10:54:03AM -0400, Maury Merkin wrote:
> I saw, just a few days ago, a post with a command to get the current
> time and reset the system clock.
> 
> I didn't pay much attention then 'cause I thought the script I used to
> use with RH would work.  They don't.  (No 'rdate' and no 'clock').

Adapted from my /etc/crontab:

    24 4  * * *    root /usr/sbin/ntpdate <timeserver> 1>/dev/null

You'll have to select a timeserver for your system, RTFM.  You may also
want to modify the time specs at which the script runs (my own system
syncs four times daily).

-- 
Karsten M. Self <kmself@ix.netcom.com>           http:/www.netcom.com/~kmself
    What part of "Gestalt" don't you understand?
    http://gestalt-system.sourceforge.net/
GPG fingerprint: F932 8B25 5FDD 2528 D595  DC61 3847 889F 55F2 B9B0

Attachment: pgpnw1jenPG5J.pgp
Description: PGP signature


Reply to: