[SunHELP] wierd cron behavior
Dale Ghent
daleg at elemental.org
Tue Mar 30 11:22:40 CST 2004
On Mar 29, 2004, at 10:06 AM, Predrag Zecevic wrote:
> Hi all,
>
> We have one box running Solaris (SPARC) 9 12/02, patched few months
> ago. On the box we have GNU date program compiled by our selves (don't
> ask why).
>
> If we run GNU date from CL, everything works fine and if we run GNU
> date from cron also works fine *but*
>
> cron was restarted using /etc/init.d/cron script and since then GNU
> date works with GMT zone instead of MET like before restart of cron?
>
> Does anybody have idea why it (GNU date) changed behavior?
This is easy.
You restarted cron while you were logged in as a user whose TZ
environment variable was set to GMT. If TZ for your user was blank or
set to MET, then cron would have used that.
Basically, log in or su to root, set your TZ variable to MET or null,
and restart cron.
/dale
More information about the SunHELP
mailing list