From owner-freebsd-stable Fri Nov 15 11:58:16 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 41A4837B401 for ; Fri, 15 Nov 2002 11:58:15 -0800 (PST) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id C89EF43E75 for ; Fri, 15 Nov 2002 11:58:14 -0800 (PST) (envelope-from crist.clark@attbi.com) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021115195327.FBHK1052.rwcrmhc52.attbi.com@blossom.cjclark.org> for ; Fri, 15 Nov 2002 19:53:27 +0000 Received: from blossom.cjclark.org (localhost. [127.0.0.1]) by blossom.cjclark.org (8.12.3/8.12.3) with ESMTP id gAFJrSWn096671 for ; Fri, 15 Nov 2002 11:53:28 -0800 (PST) (envelope-from crist.clark@attbi.com) Received: (from cjc@localhost) by blossom.cjclark.org (8.12.3/8.12.3/Submit) id gAFJrR9C096670 for freebsd-stable@FreeBSD.ORG; Fri, 15 Nov 2002 11:53:27 -0800 (PST) X-Authentication-Warning: blossom.cjclark.org: cjc set sender to crist.clark@attbi.com using -f Date: Fri, 15 Nov 2002 11:53:27 -0800 From: "Crist J. Clark" To: freebsd-stable@FreeBSD.ORG Subject: Re: tz in cron Message-ID: <20021115195327.GA96535@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20021103030125.GA36615@blossom.cjclark.org> <200211151920.gAFJKLIn002011@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211151920.gAFJKLIn002011@lurza.secnetix.de> User-Agent: Mutt/1.4i X-URL: http://people.freebsd.org/~cjc/ 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 On Fri, Nov 15, 2002 at 08:20:21PM +0100, Oliver Fromme wrote: > Crist J. Clark wrote: > > On Thu, Oct 31, 2002 at 11:16:25AM +0100, Oliver Fromme wrote: > > > The following in /etc/rc.conf will do: > > > > > > cron_program="/usr/sbin/cron-wrapper" > > > > > > And make /usr/sbin/cron-wrapper a shell script like this: > > > > > > #!/bin/sh - > > > export TZ=GMT > > > exec /usr/sbin/cron "$@" > > > > Wouldn't, > > > > cron_program="TZ=UTC /usr/sbin/cron" > > > > Be even easier? > > Yes, it would be easier, but it doesn't work. :-) > You cannot include environment variables in rc.conf that way. Sorry about that. This will work, cron_program="eval TZ=UTC /usr/sbin/cron" -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message