System V cron problem (with fix)
James Macropol
jm at wlbr.UUCP
Tue Jan 21 03:35:46 AEST 1986
In article <405 at wlbr.UUCP> I write:
>> System V r2v2 cron neglects to set up the TZ variable in the environment.
In article <491 at whuts.UUCP> paul at whuts.UUCP (HO) writes:
>If you set TZ before you start the cron, and export TZ, then you don't
>need to change the cron. You can do this in /etc/rc, assuming cron is
>started there.
This is not true. cron does NOT pass its environment along to any invoked
program, but constructs an artificial environment, containing only HOME,
LOGNAME, PATH, and SHELL. Note that TZ is left out. In order to pass TZ to
invoked programs, two things must be done:
1) TZ must be set up and exported in the /etc/rc file.
2) cron must be modified to pass TZ along to invoked programs.
Jim Macropol
Eaton IMS
{ihnp4,scgvaxd,voder,vortex,trwrb,jplgodo}!wlbr!jm
More information about the Net.bugs.usg
mailing list