home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sources / d / 1508 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  2.4 KB

  1. Xref: sparky comp.sources.d:1508 comp.unix.sysv386:17659
  2. Newsgroups: comp.sources.d,comp.unix.sysv386
  3. Path: sparky!uunet!paladin.american.edu!gatech!emory!wa4mei!kd4nc!n4hgf!wht
  4. From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  5. Subject: Re: location of dial(3C)
  6. Organization: TuckerWare/ARS N4HGF
  7. Date: Sat, 02 Jan 1993 16:50:44 GMT
  8. Message-ID: <1993Jan02.165044.3624@n4hgf.Mt-Park.GA.US>
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. References: <1992Dec29.142401.6176@candle.uucp>
  11. Lines: 44
  12.  
  13. Bruce Momjian (root@candle.uucp) wrote:
  14. : Jon LaBadie (jon@jonlab.UUCP) wrote:
  15. : : Having used a clock synchronization program on my 3B1 computer,
  16. : : I was pleased to see settime.c come across comp.sources.misc.
  17. : : 
  18. : I hacked up the source to use 'cu' for System V machines.  Let me know
  19. : if anyone wants a copy.  It is not as accurate because all data passes
  20. : through a pipe from cu to the main program.
  21.  
  22. My clock is so drifty, the error introduced by the pipe delay
  23. is insignificant.
  24.  
  25. You can look for comp.sources.misc Volume 3, Issue 79 "utc"
  26. that can use cu.  It can also serve as a time source,
  27. so you can get the time via a cron cu|utc job every
  28. day or so and share it with others
  29. calling your system.
  30.  
  31. In old XENIX systems, stime() did not set the AT cmos
  32. clock, so I wrote 'cmostime3' that did it all:
  33. acquire a tty and lock it, dial the numebr, scan for the time,
  34. hang up, stime() and write /dev/cmos or /dev/rtc.
  35.  
  36. I thought this went out to comp.sources.misc in 1990 but I
  37. cannot find it in the archive.  if there is any interest,
  38. I can make it (or a later rev cmostime4) available.
  39.  
  40. cmostime is a bit overbearing, even obsequious, but it does
  41. work and it depends on very, very little other than termio
  42. and stime() :-).  It is a bit SCO specific, looking
  43. to write a lock file in /usr/spool/uucp, not /usr/spool/locks.
  44.  
  45. Dial(3) has never worked properly anywhere I have encountered it.
  46. Most places I have found it, it didn't even know HDB had
  47. replaced version 2 :-|.  Evidently, the 3B folks got it right.
  48.  
  49. ------------------------------------------------------------------------------
  50. Warren Tucker  (404)587-5766              n4hgf!wht or wht@n4hgf.Mt-Park.GA.US
  51. All readers cannot be leaders, but all leaders must be readers. - Harry Truman
  52. -- 
  53. ------------------------------------------------------------------------------
  54. Warren Tucker  (404)587-5766              n4hgf!wht or wht@n4hgf.Mt-Park.GA.US
  55. All readers cannot be leaders, but all leaders must be readers. - Harry Truman
  56.