SCO 'date'
Walter Mecky
walter at mecky.UUCP
Fri Nov 23 02:52:35 AEST 1990
In article <893 at stewart.UUCP> jerry at stewart.UUCP (Jerry Shekhel) writes:
< Hello. I'm running SCO Sys V/386 3.2.1 (ODT 1.0). What the hell is wrong
< with the 'date' command? It actually seems to overwrite the CMOS clock!
Yes it does. Suppose it's another nasty bug, because for setting the CMOS
clock there is "setclock".
< I got sick of having to enter the correct time upon bootup, so I deleted
< a few lines from /etc/asktimerc, so that all it does is essentially a
< "date `setclock`". This works roughly half the time. The other half of
< the time, the date ends up being a few hours off (not minutes, always hours).
< The weird thing is that entering "date `setclock`" from the command line
< actually advances the CMOS clock by 5 hours, every time. Anyone out there
< have problems like these? Any solutions?
I made the same experiences. The reasons are, that "date" takes your
timezone (according to TZ in the environment) and "setclock" does not.
I solved the problem in temporary unsetting TZ:
TZ= date `setclock`
Hope that helps.
--
Walter Mecky [ walter at mecky.uucp or ...uunet!unido!mecky!walter ]
More information about the Comp.unix.sysv386
mailing list