Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Linux time update util


    Hey, does anyone know of a small app i can run on my linux box so it gets the accurate time off an atomic clock every few hours or summin? My hardware clock seems to be a bit borked :P

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Head over to http://ntp.org. Install the ntp tools and you can set a cron job to set the time/date however often you would like.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    cool! to setup a cron job (running rh9) do i just put a link to it in /etc/cron.daily ? if im wrong can u tell me how? Thanks greatly

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Just make a script as follows:

    Code:
    #!/bin/bash
    
    ntpdate navobs1.gatech.edu
    You can use whatever server you like.

    Now:

    Code:
    su -
    (enter root password)
    mv /path/to/script /etc/cron.daily
    chmod 755 /etc/cron.daily/script.sh
    That's all there is to it!
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  6. #5
    cool, thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •