tlt@ihtlt.UUCP (T. L. Todd) (04/07/88)
A while back someone posted a program to fix the inaccuracies of the clock in the UNIX-PC. This program called "fixRTC" was supposed to be run out of cron. If you need to set the clock backwards x number of seconds every so often it has a problem. The program runs and set the clock back all right but then cron wants to keep running it over and over again so that "time stands still". Is it now in the twilight zone? Did anyone else try this program and experience this problem? Anyone have a fix for this? Terry Todd @ ihlpl!tlt or 312-979-2077
kevin@kosman.UUCP (Kevin O'Gorman) (04/08/88)
In article <78@ihtlt.UUCP> tlt@ihtlt.UUCP (T. L. Todd) writes: >A while back someone posted a program to fix the inaccuracies of >the clock in the UNIX-PC. This program called "fixRTC" was supposed >to be run out of cron. If you need to set the clock backwards x >number of seconds every so often it has a problem. The program >runs and set the clock back all right but then cron wants to keep >running it over and over again so that "time stands still". Is it >now in the twilight zone? Did anyone else try this program and >experience this problem? Anyone have a fix for this? > >Terry Todd @ ihlpl!tlt or 312-979-2077 Yes, I had the problem. Here's how I dealt with it: The problem occurs because you're backing up the clock to before the time that cron has been told to start fixRTC, which it obligingly does, right? So, by having cron run something that delays FIRST, for more than 23 seconds, you get by. You delay 60 seconds, run fixRTC, and now the time is *after* the moment that cron would run fixRTC. In another 30 seconds or so, cron's sleep(60) will expire, and seeing that time has gone by, be very happy. You can do this right in the crontab line: 3 0 * * 1 /bin/su root -c "/bin/sleep 60; /usr/local/bin/fixRTC -23 "
pjh@mccc.UUCP (Peter J. Holsberg) (04/11/88)
Could someone mail me a copy of fixRTC? Thanks. -- Peter Holsberg UUCP: {rutgers!}princeton!mccc!pjh Technology Division CompuServe: 70240,334 Mercer College GEnie: PJHOLSBERG Trenton, NJ 08690 Voice: 1-609-586-4800
edward@engr.uky.edu (Edward C. Bennett) (04/12/88)
In article <78@ihtlt.UUCP> tlt@ihtlt.UUCP (T. L. Todd) writes: >A while back someone posted a program to fix the inaccuracies of >the clock in the UNIX-PC. I'd like to get a copy of this. Is it archived anywhere? -- Edward C. Bennett DOMAIN: edward@engr.uky.edu (606) 257-4938 UUCP: {cbosgd|uunet}!ukma!ukecc!edward "Goodnight M.A." BITNET: edward%ukecc.uucp@ukma "He's become a growling, snarling mass of white-hot canine terror"