From owner-freebsd-questions@FreeBSD.ORG Tue Mar 31 08:35:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90A681065729 for ; Tue, 31 Mar 2009 08:35:25 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id D02A38FC1A for ; Tue, 31 Mar 2009 08:35:07 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (gate.lan.rachie.is-a-geek.net [192.168.2.10]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id C94F37E81A; Tue, 31 Mar 2009 00:35:06 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Tue, 31 Mar 2009 10:35:05 +0200 User-Agent: KMail/1.11.0 (FreeBSD/8.0-CURRENT; KDE/4.2.0; i386; ; ) References: <200903310452.n2V4qTXk091526@banyan.cs.ait.ac.th> <200903310659.31371.mel.flynn+fbsd.questions@mailing.thruhere.net> <200903310756.n2V7uEk7075938@banyan.cs.ait.ac.th> In-Reply-To: <200903310756.n2V7uEk7075938@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903311035.05492.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Olivier Nicole Subject: Re: Crontab for different ime zones 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: Tue, 31 Mar 2009 08:35:28 -0000 On Tuesday 31 March 2009 09:56:14 Olivier Nicole wrote: > > > Is there a way to start jobs with cron using different a time-zone > > > different from local time zone? > > > > > > I am in a TZ that has no Daylight Savings Time, and would like to > > > start a job (reccording of a web cast) in a TZ that has DST (so with a > > > time difference that changes along the year). > > > > > > Is there an automatic/intelligent way to do that? > > > > Not that I know of, yet since timezones only change twice a year you > > can look up the changes for the coming year and adjust the crontab > > accordingly. > > Hey, I am too lazyto change my crontab twice a year, and we have > computers, they should do the work for us. Once a year, since you can use months and days. In fact, iirc DST changes are known 5 years ahead (I'm sure I"ll be corrected if this is not the case) so one can even run a yearly cronjob to change the crontab ;) Of course, waiting an hour during summertime is an option, as is running cron in a jail with /etc/localtime of the target timezone - use tzsetup(8) for that inside the jail (though seems overkill for the purpose). -- Mel