The system time is set to the hardware clock on bootup. Over time, the system
and hardware clock fall out of sync, and neither of them are very accurate as
is. This is why you should use both the rdate and hwclock commands relatively
often (maybe about once a day) to keep them _both_ in sync with a NTP server.

On 17 Sep 2001 10:48:51 -0400, Paul Rodríguez <[EMAIL PROTECTED]> wrote:
> It seems as though the hardware clock is set correctly (doesn't lose its
> time).  The system clock stays off even after reboot, though.  Is there
> a command to set the system time to the hardware clock?
> 
> -Paul Rodríguez
> 
> On 18 Sep 2001 00:03:06 +1000, Sridhar Dhanapalan wrote:
> > You have two clocks. The first is your hardware clock, which is run from a
> > battery on your motherboard (and hence runs even when your machine is off).
The
> > second is the system clock, which is set from the hardware clock at bootup.
In
> > the command "rdate -s clock-1.cs.cmu.edu" synchronises the system clock to
the
> > clock on the clock-1.cs.cmu.edu server. Since this is only a runtime clock
(and
> > so is lost at shutdown), you need to set the hardware clock as well. This is
> > what "hwclock --systohc" does. The "&&" allows you to run two commands on
the
> > same line, but only runs the second command if the first has completed
without
> > error.
> > 
> > On 17 Sep 2001 09:16:24 -0400, Paul Rodríguez <[EMAIL PROTECTED]> wrote:
> > > What does && hwclock --systohc do?
> > > 
> > > -Paul Rodríguez
> > > 
> > > On 17 Sep 2001 01:49:44 -0500, Bill R wrote:
> > > > This is what I use. Im in the central standard time.
> > > > 
> > > > rdate -s clock-1.cs.cmu.edu && hwclock --systohc
> > > > 
> > > > 
> > > > On Sunday 16 September 2001 07:34 pm, you wrote:
> > > > > Hi, I read somewhare about setting up a recurring program to update my
> > > > > system time by checking the time on internet time servers.  My system
> > > > > clock goes out of sync with the world's clocks after it wakes up from
> > > > > suspend (laptop), I need a program to reset the time after wake up.
> > > > >
> > > > > I seem to recall something about a program (i believe it was called)
> > > > > rdate.  Anybody know how to do this?
> > > > >
> > > > > -Paul Rodríguez
> > 
> > -- 
> > Sridhar Dhanapalan.
> >       "There are two major products that come from Berkeley:
> >       LSD and UNIX. We don't believe this to be a coincidence."
> >               -- Jeremy S. Anderson
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 



-- 
Sridhar Dhanapalan.
        "There are two major products that come from Berkeley:
        LSD and UNIX. We don't believe this to be a coincidence."
                -- Jeremy S. Anderson

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to