System V cron problem (with fix)

HO paul at whuts.UUCP
Tue Jan 28 04:50:40 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

You are right and so am I. I looked at the source, and cron was 
already modified to use TZ. For me, I don't have to change the cron,
since we use Bell Labs Division 452 UNIX, and it seems our UNIX
is a little ahead of the official public release. I would *assume*
that bugs like that will eventaully find their way to a later release.

Paul Ho

*** REPLACE THIS LINE WITH YOUR MESSAGE ***



More information about the Net.bugs.usg mailing list