Date: Thu, 12 Nov 1998 17:28:05 -0600 From: Jon Hamilton <hamilton@pobox.com> To: walton@nordicdms.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: GMT cron Message-ID: <199811122328.PAA10118@hub.freebsd.org> In-Reply-To: Your message of "Thu, 12 Nov 1998 14:30:43 PST." <19981112223044.5134.qmail@modgud.nordicdms.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811122328.PAA10118>