phence
08-25-2002, 05:41 PM
how can u chage your linux server time?
|
Click to See Complete Forum and Search --> : ? Changing server time ? phence 08-25-2002, 05:41 PM how can u chage your linux server time? JH5 08-26-2002, 09:08 AM at shell type "man date" to bring up the help for date... it explains how to set the date. ( without the " " btw ) JH5 08-26-2002, 09:10 AM btw it requires root to change date regular users don't have correct permissions to. jstarkey 08-26-2002, 01:57 PM You also may wanna consider ntp. It's a way to keep the machine in sync with time servers. If you go that route, download the app, install and just add this to your cron: 05 00 * * * /path/to/ntpdate time-a.nist.gov && hwclock --systohc time-a.nist.gov can be replaced with any time server. Each morning at 5 mins after midnight, it will set the time based on the time server's response. The hwclock part will write it to the hardware, so that a reboot won't screw up the date. HTH phence 08-26-2002, 07:15 PM thank-you guys! PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved. |