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

updating clock automagically with crontab



Hi

For some reason, my system clock has gone screwy. I lose varying amounts
of time during the day.

I read these from an earlier post, and it works great, however, it's
beginning to be come a pain to su to root and run them every couple of
hours.

So, I was perusing my Unix System V: A Practical Guide and decided to
give contab a shot.

>From the man pages and the book, I've come up with the following set of
commands to get my system clock updated hourly:

# crontab
# 0 * * * * rdate time.nist.gov ; hwclock --systohc
# control-D

Will this work for updating my clock every hour on the hour? 

tia
-- 
                                         __   _
Mark Wagnon             Debian GNU/ -o) / /  (_)__  __ ____  __    
Chula Vista, CA                     /\\/ /__/ / _ \/ // /\ \/ /   
mwagnon1@home.com                  _\_v____/_/_//_/\_,_/ /_/\_\
                                           http://www.debian.org


Reply to: