Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2002 20:20:21 +0100 (CET)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-stable@FreeBSD.ORG, "Crist J. Clark" <cjc@FreeBSD.ORG>
Subject:   Re: tz in cron
Message-ID:  <200211151920.gAFJKLIn002011@lurza.secnetix.de>
In-Reply-To: <20021103030125.GA36615@blossom.cjclark.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Crist J. Clark <crist.clark@attbi.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211151920.gAFJKLIn002011>