Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2002 11:53:27 -0800
From:      "Crist J. Clark" <crist.clark@attbi.com>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: tz in cron
Message-ID:  <20021115195327.GA96535@blossom.cjclark.org>
In-Reply-To: <200211151920.gAFJKLIn002011@lurza.secnetix.de>
References:  <20021103030125.GA36615@blossom.cjclark.org> <200211151920.gAFJKLIn002011@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 15, 2002 at 08:20:21PM +0100, Oliver Fromme wrote:
> 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.

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




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