From owner-freebsd-questions Thu Nov 12 15:28:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10127 for freebsd-questions-outgoing; Thu, 12 Nov 1998 15:28:14 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pobox.com (skaro-2-60.mdm.mke.execpc.com [169.207.138.188]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA10118 for ; Thu, 12 Nov 1998 15:28:05 -0800 (PST) (envelope-from hamilton@pobox.com) Message-Id: <199811122328.PAA10118@hub.freebsd.org> Received: (qmail 9598 invoked from network); 12 Nov 1998 17:28:06 -0600 Received: from localhost (HELO pobox.com) (127.0.0.1) by localhost with SMTP; 12 Nov 1998 17:28:05 -0600 To: walton@nordicdms.com cc: freebsd-questions@FreeBSD.ORG Subject: Re: GMT cron In-reply-to: Your message of "Thu, 12 Nov 1998 14:30:43 PST." <19981112223044.5134.qmail@modgud.nordicdms.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 12 Nov 1998 17:28:05 -0600 From: Jon Hamilton Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <19981112223044.5134.qmail@modgud.nordicdms.com>, "Dave Walton" wrot e: } Is there some way to make cron run something at GMT instead of } local time? I'd just calculate the difference, but there's that whole } PST/PDT thing. Suggestions? 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. -- Jon Hamilton hamilton@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message