To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-25-2002, 05:41 PM   #1
phence
Jesus Saves
 
Join Date: Aug 2002
Posts: 426
Question ? Changing server time ?

how can u chage your linux server time?
phence is offline   Reply With Quote
Old 08-26-2002, 09:08 AM   #2
JH5
Junior Member
 
Join Date: Aug 2002
Posts: 7
at shell type "man date" to bring up the help for date... it explains how to set the date.

( without the " " btw )
JH5 is offline   Reply With Quote
Old 08-26-2002, 09:10 AM   #3
JH5
Junior Member
 
Join Date: Aug 2002
Posts: 7
btw it requires root to change date regular users don't have correct permissions to.
JH5 is offline   Reply With Quote
Old 08-26-2002, 01:57 PM   #4
jstarkey
Civilian
 
jstarkey's Avatar
 
Join Date: Jul 2002
Location: 9500 ft
Posts: 1,104
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
jstarkey is offline   Reply With Quote
Old 08-26-2002, 07:15 PM   #5
phence
Jesus Saves
 
Join Date: Aug 2002
Posts: 426
thanks!

thank-you guys!
phence is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:55 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.