From owner-freebsd-questions@FreeBSD.ORG Sat Mar 4 00:57:37 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 2C6FF16A420 for ; Sat, 4 Mar 2006 00:57:37 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB11B43D45 for ; Sat, 4 Mar 2006 00:57:36 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: by wproxy.gmail.com with SMTP id 37so1030203wra for ; Fri, 03 Mar 2006 16:57:36 -0800 (PST) Received: by 10.64.96.6 with SMTP id t6mr14920qbb; Fri, 03 Mar 2006 16:57:35 -0800 (PST) Received: by 10.64.125.14 with HTTP; Fri, 3 Mar 2006 16:57:35 -0800 (PST) Message-ID: <2a5241e00603031657h21aadc95vdc528553a9348c70@mail.gmail.com> Date: Fri, 3 Mar 2006 16:57:35 -0800 From: "Danny Howard" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: 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 00:57:37 -0000 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? I will of course discover this by trial-and-error, but it is nicer to hear from someone who has wrestled with this before. :) http://widell.fulhack.nu/bd/dst/ is fun, but dated. Thanks, -danny -- http://dannyman.toldme.com