setting the system clock.

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

 



I have a neet little shellscript I put together using the net date
utility. Let me include it here.
----- beginning of file -----
#!/bin/sh
/usr/sbin/netdate clock.psu.edu
if [ "$?" = "0" ]; then
    clock -w
    echo CMOS clock has been set.
fi

----- end of file -----
The clock -w command is the deal that permenantly updates your hardware
clock. There might be a way to manually set it all with the date command
but not sure. Look at the man pages for the above commands. I run this
shell script every day in a crontab and my clock is solid now.

 On Thu, 18 Oct 2001, Shaun Oliver wrote:

> Hi guys how tdo I go about setting the system clock under linux?
> I've got to do this as a result of my hareware clock going a little
> um. well slow.
> thanks in advance.
>
>
>





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux