Hello Everyone. I am sorry for bothering you with such a simple thing but I seem to not able to a piece I put in the Crontab to work. Basically I am trying to get the server to periodically update the time on the server to ensure it always has the right time. Here is what I have entered: 0 0 * * * root /usr/sbin/ntpdate 204.123.2.72 I did make sure I have a space at the end. To test it I off set the time on the server by 10 mins to see if it correct itself @ midnight w/ the entry I put in the crontab but it did not. So what am I doing wrong. Thanks Everyone! -- Bob Barish B.M.T Solutions http://www.bmtsolutions.com 12:39pm up 1 day, 16:17, 2 users, load average: 0.01, 0.06, 0.08
On Sunday 23 June 2002 15:44, bob barish wrote: Well, although it's nice to use cron etries, the same goal can be completed by using xntpd. There is also an option in rc.config (/etc/sysconfig/xntpd in 8.0) to have an ntpdate run when the box boots up. I use this setup on all of my servers to keep time synced up. Hope this helps! Donavan Pantke
Hello Everyone. I am sorry for bothering you with such a simple thing but I seem to not able to a piece I put in the Crontab to work. Basically I am trying to get the server to periodically update the time on the server to ensure it always has the right time.
Here is what I have entered: 0 0 * * * root /usr/sbin/ntpdate 204.123.2.72
I did make sure I have a space at the end. To test it I off set the time on the server by 10 mins to see if it correct itself @ midnight w/ the entry I put in the crontab but it did not. So what am I doing wrong.
Thanks Everyone!
On Sunday 23 June 2002 13:05, Donavan Pantke wrote:
Well, although it's nice to use cron etries, the same goal can be completed by using xntpd. There is also an option in rc.config (/etc/sysconfig/xntpd in 8.0) to have an ntpdate run when the box boots up. I use this setup on all of my servers to keep time synced up.
Hope this helps! Donavan Pantke
Thanks Donavan! It did help. I went to /etc/sysconfig/xntpd and set to auto and then went to /etc/ntpd.conf and put in the server I wish to use. I tested the setup and it did work as you suggested. -- Bob Barish B.M.T Solutions http://www.bmtsolutions.com 1:31pm up 5 min, 2 users, load average: 0.22, 0.33, 0.17
participants (2)
-
bob barish
-
Donavan Pantke