Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2006 23:04:38 -0600
From:      "Noel Jones" <noeldude@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: switching timezone within crontab?
Message-ID:  <cce506b0603032104j51c3a6e6laba9f74f57dd72f2@mail.gmail.com>
In-Reply-To: <2a5241e00603031657h21aadc95vdc528553a9348c70@mail.gmail.com>
References:  <2a5241e00603031657h21aadc95vdc528553a9348c70@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:
> Hey,
>
> So, we have systems running in Eastern and Pacific time zones as their
> local time, not to mention DST.  So, we like to schedule a few things
> with UTC to save our sanity.
>
> 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?
>

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.

--
Noel Jones



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