Mailing List Archive


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

Re: [tlug] time setting



On Wed, 2002-10-23 at 10:39, Jim O'Connell wrote:
> >From a time server?
> try 
> 	rdate time.nuri.net
> to check the time and/or
> 	rdate -s time.nuri.net
> 
> By hand, do 
> 	date -s [date]
> 
> type 'man date' ((insert witty remark here)) for more options. 
> 

Or probably better, with ntpdate. For instance, I run each hour the
following script:
Note the last command, to update the hardware clock from the system
clock (in my case it keeps UTC time).

#! /bin/sh
#
# set up time.

NTPSERVERS="your.ntp.server"
#logger setting network time...
ntpdate -s $NTPSERVERS
#logger setting hardware clock...
hwclock --utc --systohc


-- 
GPG Key: 653514E5 (http://www.raoult.com/gpg)
--
Any sufficiently advanced bug is indistinguishable from a feature.
   -- Rich Kulawiec

Attachment: signature.asc
Description: This is a digitally signed message part


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links