Help with date and redhat 9

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

 



in redhat you can set the clock using rdate
rredhat puts rdate in /usr/bin
and debian puts it in /usr/sbin


here is my debian script
You can put it in cron.daily.


I call mine
/etc/cron.daily/gettime

#!/bin/sh

/usr/sbin/rdate -s time1.unet.brandeis.edu







On Sun, 26 Oct 2003, Chuck Hallenbeck wrote:

> Hi Sima,
>
> Here is how I do it. The following command is executed as root:
>
> netdate -l 0 tick.wustl.edu tcp bumpy.braille.uwo.ca
>
> It is probably best to make an alias for this, or put it in a
> script or something. In my case, I execute that line within my
> ip-up script.
>
> It will update your time within the kernel, but not reset the
> hardware clock. That turns out to be no problem on this slackware
> system, since slackware copies the time from the kernel into the
> hardware clock during the shutdown process, and the only other
> time the hardware clock is referenced is during bootup, I
> believe.
>
> The line above references two time servers, in case one or the
> other might be down for some reason.
>
> Hope that helps
>
> Chuck
>
>
> On Sun, 26 Oct 2003, Sina Bahram wrote:
>
> > Hello all
> >
> > I am having a bit of a problem with the date command. I want to set it
> > up so that my computer can fetch the current date from a time server.
> > However, I know of no time servers and I also have no clue how to pass
> > the correct arguments to the date command. Can anyone help me out on
> > this?
> >
> > What should be the commands to the date command to tell it to look at
> > some server for the time, and set the system time accordingly.
> > I am on eastern standard time if that helps.
> >
> > Thanks,
> > Sina
> >
> > No trees were destroyed in sending this message. However, a large number
> > of electrons were terribly inconvenienced.
> >
> >
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> --
> The Moon is Waxing Crescent (3% of Full)
>  Get my public key from website, http://www.mhonline.net/~chuckh
>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>




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