Tony van der Hoff <[email protected]> writes:
> GMT/BST; I just want cron to trigger tasks at a fixed time each day,
> regardless of localtime.
man cron:
It is possible to use different time zones for crontables. See
crontab(5) for more information.
man 5 crontab:
The CRON_TZ variable specifies the time zone specific for the
cron table. The user should enter a time according to the
specified time zone into the table. The time used for writing
into a log file is taken from the local time zone, where the
daemon is running.
I guess you could run a (perl) script that changes CRON_TZ in your cron
table(s) whenever you change the time zone you're in. Or you could run
a script that changes the times in the entries. Since the docstrings
say that cron either uses inotify or checks the tables every minute, I
would think that you're not limited to 'crontab -e' for modifying the
tables.
--
Hallowed are the Debians!
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]