From owner-freebsd-stable Wed Oct 30 10:56:34 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E9D137B401 for ; Wed, 30 Oct 2002 10:56:33 -0800 (PST) Received: from mail1.qc.uunet.ca (mail1.qc.uunet.ca [198.168.54.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31F1343E3B for ; Wed, 30 Oct 2002 10:56:32 -0800 (PST) (envelope-from anarcat@espresso-com.com) Received: from xtanbul.studio.espresso-com.com ([216.94.147.57]) by mail1.qc.uunet.ca (8.10.2/8.10.2) with ESMTP id g9UIuMZ13153; Wed, 30 Oct 2002 13:56:22 -0500 Received: from anarcat by xtanbul.studio.espresso-com.com with local (Exim 3.36 #1 (Debian)) id 186y0t-0000x5-00; Wed, 30 Oct 2002 13:56:23 -0500 Date: Wed, 30 Oct 2002 13:56:23 -0500 From: The Anarcat To: "Louis A. Mamakos" Cc: Randy Bush , FreeBSD Stable Subject: Re: tz in cron Message-ID: <20021030185620.GD3531@xtanbul.studio.espresso-com.com> Mail-Followup-To: "Louis A. Mamakos" , Randy Bush , FreeBSD Stable References: <200210301651.g9UGpXhw023141@whizzo.transsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200210301651.g9UGpXhw023141@whizzo.transsys.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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