[comp.sys.att] Funny Clock with Fsokay shutdown.

rl@sssphx.UUCP (Rod Longhofer) (06/09/89)

I have added the nice :-> program for the replacement of the 3b1 normal
rc with Lenny Tropianco script's and programs, everything seems to work
fine other than, my clock looses 3 hours during the startup? I am running
ver. 3.5 unix, 72meg drive 2 meg ram.

Other subject i have been gone for 3 weeks, i want the conversion for
putting a second hard disk drive on my system! Also whats the state of
the SCSI port. I havent heard anything for the last 3 days.

-- 
Rod Longhofer		      rl@sssphx.UUCP | sssphx!rl@asuvax.asu.edu
work 602-961-1317      "DOS is a nice loader, for terminal emulation software."

lenny@icus.islp.ny.us (Lenny Tropiano) (06/18/89)

In article <123@sssphx.UUCP> rl@sssphx.UUCP (Rod Longhofer) writes:
|>I have added the nice :-> program for the replacement of the 3b1 normal
|>rc with Lenny Tropianco script's and programs, everything seems to work
|>fine other than, my clock looses 3 hours during the startup? I am running
|>ver. 3.5 unix, 72meg drive 2 meg ram.
|>
...
Since my "/etc/rc" program does an "date -" during startup, it will take
whatever is in the hardware clock and write it into the software clock.
Of course if your clock is off by 3 hours, it may "seem to appear" that
it is loosing time... I would suggest resetting your clock with:

# date mmddHHMMyy

|>Other subject i have been gone for 3 weeks, i want the conversion for
|>putting a second hard disk drive on my system! Also whats the state of
|>the SCSI port. I havent heard anything for the last 3 days.
|>
The 2nd Drive plans are available from ICUS, you can email me for further
details (instead of flooding the net).  I'll look for the information in
my back postings and mail you a copy ...

The SCSI port discussion isn't a daily event, so keep tuned for any further
details on that ... I have some good information forthcoming in the USENIX
Minutes for UNIX pc BOF!  See that article in the further at a newsgroup
near you!

-Lenny
-- 
Lenny Tropiano             ICUS Software Systems         [w] +1 (516) 589-7930
lenny@icus.islp.ny.us      Telex; 154232428 ICUS         [h] +1 (516) 968-8576
{ames,talcott,decuac,hombre,pacbell,sbcs}!icus!lenny     attmail!icus!lenny
        ICUS Software Systems -- PO Box 1; Islip Terrace, NY  11752

merv@gpstwr.UUCP (Merv Graham) (06/19/89)

In article <724@icus.islp.ny.us> lenny@icus.islp.ny.us (Lenny Tropiano) writes:
>In article <123@sssphx.UUCP> rl@sssphx.UUCP (Rod Longhofer) writes:
>|>I have added the nice :-> program for the replacement of the 3b1 normal
>|>rc with Lenny Tropianco script's and programs, everything seems to work
>|>fine other than, my clock looses 3 hours during the startup? I am running
>|>ver. 3.5 unix, 72meg drive 2 meg ram.
>|>
>...
>Since my "/etc/rc" program does an "date -" during startup, it will take
>whatever is in the hardware clock and write it into the software clock.
>Of course if your clock is off by 3 hours, it may "seem to appear" that
>it is loosing time... I would suggest resetting your clock with:
>
># date mmddHHMMyy

Sorry, this doesn't fix it either!!!!!  
Low pilot light on here:
It seems that UNIX programmers that live on the east coast think that time
revolves around them.
pilot light off :-)

Seriously, the UNIX kernel seems to assume EST/EDT unless explictly set to
some other time zone.  We in the other zones are always having to be
careful that the TZ environment is set properly.  Particularly for
programs that are to be run by cron.  If not, we are "mailed" messages or
have files created that are all dated with EST/EDT times.

With regard to this problem, the way I fixed it was to move the line:
	TZ=`cat /etc/TZ`: export TZ
to a postion before the "date -" command is run.  This lets the system
know it is to use the proper offset when extracting the date from the
hardware clock.
Please advise use if this would create any other problems.
-- 
Merv Graham                 |     merv@gpstwr.UUCP
Graham-Patten Systems, Inc. | or: tektronix!gvgpsa!gpstwr!merv
P.O. Box 1960               | 
Grass Valley, CA 95945      | Ph: 916-273-8412   FAX: 916-273-7458