From owner-freebsd-questions@FreeBSD.ORG Sat Mar 4 11:58:09 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7BFD16A420 for ; Sat, 4 Mar 2006 11:58:09 +0000 (GMT) (envelope-from sveinhal@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 489DF43D49 for ; Sat, 4 Mar 2006 11:58:09 +0000 (GMT) (envelope-from sveinhal@gmail.com) Received: by xproxy.gmail.com with SMTP id t15so576715wxc for ; Sat, 04 Mar 2006 03:58:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UdmDfjZDcm2dfIo3c2pZlFw32iyT6onHcFFk3KWffX5QhfYmdtHIdNHZtNPJGl/Hg13l4OSNTgTmQYX7TQzkdWvLJ2L5mPm8eyekBlRcRT/nfM3dHfKHvRMP4keDWTbNrRHC+mwIZ2v19rGm5pthAqbZy3G/PSQ3+oklEgFMEWk= Received: by 10.70.117.4 with SMTP id p4mr5759892wxc; Sat, 04 Mar 2006 03:58:08 -0800 (PST) Received: by 10.70.117.9 with HTTP; Sat, 4 Mar 2006 03:58:08 -0800 (PST) Message-ID: Date: Sat, 4 Mar 2006 12:58:08 +0100 From: "Svein Halvor Halvorsen" Sender: sveinhal@gmail.com To: "Noel Jones" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2a5241e00603031657h21aadc95vdc528553a9348c70@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: switching timezone within crontab? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Mar 2006 11:58:09 -0000 > On 3/3/06, Danny Howard 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 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.