From owner-freebsd-questions@FreeBSD.ORG Sun May 24 05:10:38 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 509951065679 for ; Sun, 24 May 2009 05:10:38 +0000 (UTC) (envelope-from gustavodn@gmail.com) Received: from mail-qy0-f105.google.com (mail-qy0-f105.google.com [209.85.221.105]) by mx1.freebsd.org (Postfix) with ESMTP id 086168FC24 for ; Sun, 24 May 2009 05:10:37 +0000 (UTC) (envelope-from gustavodn@gmail.com) Received: by qyk3 with SMTP id 3so3897359qyk.3 for ; Sat, 23 May 2009 22:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8YT3mRz0gd/EZYF1JPaMITMttD8aw3sRhpb+lESz2Cc=; b=AghzFUw4d4kffCfTc/M1lS2ouNx3B05MbZrGRi11eiMnUANaHB82N8KuTeLVhP4GfC 2buzrLVuU5FqW70T7V4pIiUGp67842q8Ww90T9XQTTVCbprMLhwF7Rv9IK20mrcjR0PL 43Jgg6gpXump8BxJFvmNDRZ0QNDMDaaGxj97U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=fg7RjzvI4AoDg1Ojq8ap+9tiBXlXQFigZFIen/1HTTCWI1JPsSdqSezozmVSafEpiX /5G+EWcm3Mf3M6roLGJetGJqUIwQIyi8yN1OCwiITWlZDhQLDREd0zQydULZHYtrsfjg yZvH0yHJwnMzBU/EUNf+AWybqnjqPo7ew99fw= MIME-Version: 1.0 Received: by 10.220.92.14 with SMTP id p14mr4910462vcm.92.1243140512236; Sat, 23 May 2009 21:48:32 -0700 (PDT) In-Reply-To: <1243136795.29198.42.camel@ubuntu> References: <1243136795.29198.42.camel@ubuntu> Date: Sun, 24 May 2009 01:48:31 -0300 Message-ID: <50af0a260905232148qf11e533q4c0143d6bcc044c0@mail.gmail.com> From: Gustavo De Nardin To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Sarah.Varney@marketmentat.com 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: Sun, 24 May 2009 05:10:38 -0000 2009/5/24 GT : > Late entry to this thread, but... > > I thought I had found an answer to this; at present I think I might have > been mistaken. > > My crontab has about a dozen jobs that need to run in > TZ=3DAmerica/New_York, and another dozen that ideally want > TZ=3DAustralia/Sydney... the server default is America/Chicago. [snip] > =C2=A0 =C2=A0TZ=3DAustralia/Sydney > =C2=A0 =C2=A0* 13 * * * date >> /home/mysite/public_html/tmp/log.txt 2>&1 > > cron will NOT run the script... I bet it will wait until 13:00 CHICAGO > time. > > I have a feeling that I am missing something relatively simple - at > which point my dream of a super-cron will be realised and the stupidity > of DST can be ignored (as it ought to be... ). I also bet that someone > else has worked this out already, somewhere in the internets tubes... > but i have been unable to find it. I don't think the regular cron works like that. Check out ports/sysutils/fcron (man 5 fcrontab .. OPTIONS .. timezone ..). --=20 (nil)