From owner-freebsd-stable Fri Nov 15 11:20:35 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 6AB5037B404; Fri, 15 Nov 2002 11:20:34 -0800 (PST) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42DFC43E6E; Fri, 15 Nov 2002 11:20:33 -0800 (PST) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.6/8.12.5) with ESMTP id gAFJKLdK002012; Fri, 15 Nov 2002 20:20:21 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.6/8.12.5/Submit) id gAFJKLIn002011; Fri, 15 Nov 2002 20:20:21 +0100 (CET) Date: Fri, 15 Nov 2002 20:20:21 +0100 (CET) Message-Id: <200211151920.gAFJKLIn002011@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, "Crist J. Clark" Reply-To: freebsd-stable@FreeBSD.ORG, "Crist J. Clark" Subject: Re: tz in cron In-Reply-To: <20021103030125.GA36615@blossom.cjclark.org> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.7-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 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. Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message