home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / programm / 7127 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.8 KB

  1. Path: sparky!uunet!ornl!utkcs2!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!news
  2. From: paul@music.sie.arizona.edu (Paul J. Sanchez)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Drifting clock
  5. Message-ID: <1992Nov10.165515.21369@organpipe.uug.arizona.edu>
  6. Date: 10 Nov 92 16:55:15 GMT
  7. References: <HARDY.92Nov9233637@golem.ps.uci.edu>
  8. Sender: news@organpipe.uug.arizona.edu
  9. Organization: University of Arizona UNIX Users Group
  10. Lines: 33
  11.  
  12. Meinhard E. Mayer (Hardy) writes
  13. > In article <1992Nov10.021255.8585@cs.brown.edu> rca@cs.brown.edu (Ronald  
  14. C. Antony) writes:
  15. > ???   I realize that my clock on the NeXT keeps running late. So finally  
  16. got
  17. > ???   annoyed enough to try to fix the problem. In the man pages I found  
  18. > ???   reference to /etc/npt.drift
  19. > ???   However the file format is not documented. Does anyone know if  
  20. this
  21. > ???   file can be helpful in getting rid of the problem? If yes, what do  
  22. the
  23. > ???   entries in the file mean?
  24. > If your machine is on a network and you know an ntp (or xntp) host at
  25. > Brown, and if your machine is running ntp (check you /etc/hostconfig
  26. > file), ntp.drift records the drift of your clock vis-a-vis the master
  27. > clock. ntp is adjusting the logical time. 
  28. > We have three servers on campus, and if I want to reset the physical
  29. > clock I issue the command (as root):
  30. > ntp -f -s -v draco.acs.uci.edu einstein.oac.uci.edu paris.ics.uci.edu
  31. > (see the man-page on ntp). 
  32.  
  33. I have the following little shell script, called timesynch, in  
  34. /usr/local/bin.  Once root starts it, it reruns itself every night at 3AM.   
  35. Substitute your favorite ntp host...
  36.  
  37. # timesynch shell script
  38. /usr/etc/ntp -s time.telcom.arizona.edu > /dev/null
  39. /usr/bin/sleep 900
  40. /usr/bin/at 3 /usr/local/bin/timesynch
  41.