From owner-freebsd-questions Thu Nov 12 22:07:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA27499 for freebsd-questions-outgoing; Thu, 12 Nov 1998 22:07:28 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from modgud.nordicdms.com (h21-168-107.nordicdms.com [207.21.168.107] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA27494 for ; Thu, 12 Nov 1998 22:07:26 -0800 (PST) (envelope-from walton@nordicdms.com) Received: (qmail 3537 invoked by alias); 13 Nov 1998 06:06:48 -0000 Message-ID: <19981113060648.3535.qmail@modgud.nordicdms.com> Received: (qmail 3523 invoked from network); 13 Nov 1998 06:06:47 -0000 Received: from mail-ftp.nordicdms.com (HELO mail-ftp) (207.21.168.100) by mail.nordicdms.com with SMTP; 13 Nov 1998 06:06:47 -0000 From: "Dave Walton" Organization: Nordic Entertainment Worldwide To: Jon Hamilton , freebsd-questions@FreeBSD.ORG Date: Thu, 12 Nov 1998 22:06:47 -0800 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: GMT cron Reply-to: walton@nordicdms.com In-reply-to: <199811122328.PAA10118@hub.freebsd.org> References: Your message of "Thu, 12 Nov 1998 14:30:43 PST." <19981112223044.5134.qmail@modgud.nordicdms.com> X-mailer: Pegasus Mail for Win32 (v3.01b) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 12 Nov 98, at 17:28, Jon Hamilton wrote: > You can start cron in an environment where $TZ is set to GMT - rather > than the following line in /etc/rc: > > echo -n ' cron'; cron > > you might try: > > echo -n ' cron'; TZ=GMT cron > > This will cause cron to schedule your jobs according to GMT, so if you had > > 23 23 * * * /bin/date > > your job would run at 23:23 GMT. However, the output of /bin/date will > reflect your local timezone. For me, the output of the above scenario > is > > Thu Nov 12 17:23:01 CST 1998 > > So you'll need to arrange for your jobs themselves to also set $TZ if you > want them to output in GMT as well. Thanks, I might try that, though that'll make everything in cron run at GMT. I was hoping for a way to control that per item. I've also been considering the possibility of just configuring the whole system for GMT instead of local time, but I'm not sure what kinds of annoying side-effects that might have. Dave ---------------------------------------------------------------------- Dave Walton Webmaster, Postmaster Nordic Entertainment Worldwide walton@nordicdms.com http://www.nordicdms.com ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message