Path: utzoo!mnetor!uunet!vsi!friedl From: friedl@vsi.UUCP (Stephen J. Friedl) Newsgroups: comp.sys.att Subject: Re: Systems File for 3b2 Message-ID: <589@vsi.UUCP> Date: 22 Apr 88 03:16:58 GMT References: <348@spock.UUCP> <144800028@occrsh.ATT.COM> Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 27 Summary: cron doesn't always export TZ In article <144800028@occrsh.ATT.COM>, rjd@occrsh.ATT.COM writes: < < Some time ago, I wrote: < < :This common problem is cause by cron not knowing how to export the < :proper TZ (timezone) environment variable; the default EST5EDT gets < :used. [...] < < Well, it is much easier to have the script that starts cron on boot < up to have the correct TZ variable. Just add ". /etc/TIMEZONE" before < the /etc/cron line in whichever file starts cron for you; usually either < /etc/rc.d/cron or /etc/rc2.d/S??cron. Not always. The 3B2 Sys V Rel 2.0.4 cron does not export TZ at all even if it is told to do so in the manner mentioned above. The System V Rel 3.1 (maybe r3.0) properly exports TZ in the manner suggested. < /etc/TIMEZONE is never consulted here either (because uucico as a shell < does not execute /etc/profile, normally the only place that /etc/TIMEZONE < is consulted). With 3B2 Sys V Rel. 3.1, /etc/TIMEZONE is consulted by init to export the proper time to getty and uucico and other friends. -- Steve Friedl V-Systems, Inc. Resident access(2) basher friedl@vsi.com {backbones}!vsi.com!friedl attmail!vsi!friedl