Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2006 12:58:08 +0100
From:      "Svein Halvor Halvorsen" <svein.h@lvor.halvorsen.cc>
To:        "Noel Jones" <noeldude@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: switching timezone within crontab?
Message-ID:  <bbe90d1d0603040358w19e04fcdu1036d0a2fbb32d58@mail.gmail.com>
In-Reply-To: <cce506b0603032104j51c3a6e6laba9f74f57dd72f2@mail.gmail.com>
References:  <2a5241e00603031657h21aadc95vdc528553a9348c70@mail.gmail.com> <cce506b0603032104j51c3a6e6laba9f74f57dd72f2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 3/3/06, Danny Howard <dannyman@toldme.com> wrote:
> > If a system is not running UTC as its locale, but I want to schedule a
> > UTC cron job in crontab, is it sufficient to put a little:
> > TZ=3DUTC
> > Right before the job?

On 3/4/06, Noel Jones <noeldude@gmail.com> wrote:
> Pretty sure the above will only set the timezone for your job, and not
> alter the schedule time.  But I don't know a solution to your problem.

How about running cron with the TZ environment set?
Ie. setting TZ=3DUTC in /etc/rc.d/cron

I haven't tried this myself.



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