Date: Wed, 30 Oct 2002 13:56:23 -0500 From: The Anarcat <anarcat@anarcat.ath.cx> To: "Louis A. Mamakos" <louie@transsys.com> Cc: Randy Bush <randy@psg.com>, FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: tz in cron Message-ID: <20021030185620.GD3531@xtanbul.studio.espresso-com.com> In-Reply-To: <200210301651.g9UGpXhw023141@whizzo.transsys.com> References: <E185h2W-000JhA-00@roam.psg.com> <200210301651.g9UGpXhw023141@whizzo.transsys.com>
next in thread | previous in thread | raw e-mail | index | archive | help
If I'm not mistaken, cron parses the crontab for environment variables, right? It could probably internally setenv(3) TZ if it encounters it? A. On Wed Oct 30, 2002 at 11:51:33AM -0500, Louis A. Mamakos wrote: > > in the man page and the code, i can see nothing like netbsd's CRON_TZ. > > so if i do, for example, TZ=GMT in crontab, can i run it in zulu? > > > > randy > > It looks like the cron uses localtime(), so perhaps you could set the > TZ env var in /etc/rc when the cron daemon is started up. Or > play some hackery with the cron_program variable in /etc/rc.conf > > louie > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021030185620.GD3531>