Fedora Linux Support Community & Resources Center
  #1  
Old 19th May 2007, 12:22 AM
xeonman9000 Offline
Registered User
 
Join Date: Feb 2006
Location: York, England
Age: 25
Posts: 207
Time Update Script

Hi, my Motherboard seems to have real trouble keeping time, it looses about 10 seconds every hour. I found a command that I can run to update it via the internet, but I would like to put this in a shell script so that it runs every hour and at bootup. I added it to a file I keep in ~/.kde/Autostart that runs a few other commands at bootup.

Code:
rdate -s clock-1.cs.cmu.edu && hwclock --systohc
How can I get this to run every hour?
Thanks, Mike.
__________________
http://www.ridethespiral.co.uk/
::Specs::
Intel Core 2 Duo E6400 CPU
Gigabyte GA-965P-DS3
2x1024Mb Patriot DDRII-800MHz RAM
320Gb Seagate Barracuda (SATA)
200Gb Seagate Barracuda
80Gb Seagate Barracuda
NEC SATA DVD-RAM drive
Sony Floppy Drive
X-Pro Card Reader
380-watt Coolermaster eXtreme PSU
BFG 256Mb 7600GT OC graphics card
C-media soundcard
Dual LG L194WT 19" widescreen monitors
Registered Linux User: #423549
Reply With Quote
  #2  
Old 19th May 2007, 02:33 AM
wneumann Offline
Registered User
 
Join Date: Dec 2004
Posts: 511
read the manpages for cron and crontab
Reply With Quote
  #3  
Old 20th May 2007, 11:54 PM
xeonman9000 Offline
Registered User
 
Join Date: Feb 2006
Location: York, England
Age: 25
Posts: 207
Cheers. That's just what I was after.
Infact, it was even easier than I thought. Don't you just love Linux?
__________________
http://www.ridethespiral.co.uk/
::Specs::
Intel Core 2 Duo E6400 CPU
Gigabyte GA-965P-DS3
2x1024Mb Patriot DDRII-800MHz RAM
320Gb Seagate Barracuda (SATA)
200Gb Seagate Barracuda
80Gb Seagate Barracuda
NEC SATA DVD-RAM drive
Sony Floppy Drive
X-Pro Card Reader
380-watt Coolermaster eXtreme PSU
BFG 256Mb 7600GT OC graphics card
C-media soundcard
Dual LG L194WT 19" widescreen monitors
Registered Linux User: #423549

Last edited by xeonman9000; 20th May 2007 at 11:59 PM.
Reply With Quote
  #4  
Old 21st May 2007, 12:03 AM
cBoSSi Offline
Registered User
 
Join Date: Nov 2006
Location: Brazil
Age: 45
Posts: 9
Quote:
Originally Posted by wneumann
read the manpages for cron and crontab
Nice...thanks for the clue
Reply With Quote
  #5  
Old 21st May 2007, 12:07 AM
cBoSSi Offline
Registered User
 
Join Date: Nov 2006
Location: Brazil
Age: 45
Posts: 9
crontab -e

#minutes (0-59),
#| hour (0-23),
#| | day (1-31),
#| | | month (1-12),
#| | | | day of week (0-6 0=sunday).
#| | | | | commands
#------------------------------------------------------------
Reply With Quote
Reply

Tags
script, time, update

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Init script time-outs problem jcat Using Fedora 2 19th January 2007 12:27 PM
Script 2 Update Time TheRoot Programming & Packaging 2 30th March 2006 06:46 AM
Execute a script every time email is received? enko Using Fedora 5 28th February 2006 08:55 PM


Current GMT-time: 09:38 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat