Linux / UNIX Tech Support Forum
This is a discussion on Changing time from the Konsole within the Linux software forums, part of the Linux Getting Started category; From the kolsole, how to change the time of the server? is it possible to add a cron job, that ...
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
From the kolsole, how to change the time of the server? is it possible to add a cron job, that at a certain time the system time will be +1 hour?
OS : Redhat Enterprise 5.0 Thanks in advance. Last edited by Tawfiq; 21-06-2009 at 11:09 AM. |
| Sponsored Links | ||
|
|
|
||||
|
You can use date command to change server time and date. Set time to 6:30:10PM
Code:
date +%T%p -s "6:30:10PM" See Linux Set Date and Time From a Command Prompt I'm sorry but I don't get your cron related question. Can you provide more info? Do you want to sync clock over the Internet using NTP?
__________________
Vivek Gite Linux Evangelist |
|
|||
|
hey man,
Thanks for your response. The issue is resolved. Here was my scenario, Server 1 : have NTPD running, configured to take time from ntp.org Server 2: also have NTPD running Server 3: also have ntpd running I did the following things. Server1: Changed the time manually using the command u provided. Then put the server1's IP at the ntp.conf file. Restarted the ntpd Server2: Put the Server1's IP in the ntp.conf . The restarted the ntpd Server3: Put the Server1's IP in the ntp.conf and then restarted the ntpd. So.. for now, all my servers are taking their time from the Server1. I will keep this as long as we have this +1 DST thing. Tawfiq |
![]() |
| Tags |
| date , linux set date , linux set time , redhat set date , redhat set time , rhel set date , rhel set time |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bonding mode not changing | bdptcob | Linux software | 6 | 18-11-2009 11:50 AM |
| changing to SU in cronjob | xpy | Shell scripting | 0 | 16-04-2008 01:29 PM |
| changing dir | sparky | Shell scripting | 8 | 30-03-2006 03:14 AM |
| changing desktop to kde | All about FreeBSD/OpenBSD/NetBSD | 1 | 11-01-2006 10:47 PM | |
| linux changing run level | Linux software | 1 | 10-01-2006 06:25 PM | |