Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #229218
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Cron Jobs and Time Zones Has Anything Changed? |
| Date | 2020-12-02 15:10 +0100 |
| Message-ID | <BhAZs-3j7-7@gated-at.bofh.it> (permalink) |
| References | <BhAwp-2TQ-3@gated-at.bofh.it> <BhAwp-2TQ-1@gated-at.bofh.it> <BhAPL-30y-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Dec 02, 2020 at 08:53:28AM -0500, Dan Ritter wrote: > It would not be ridiculous to run a wrapper program out of, e.g. > cron.hourly, which used an explicitly set TZ as a cue to run > another job. I was vaguely thinking of a similar approach. Set up a job that runs every hour, or across a set of hours that will cover all the possible cases that you care about, in your crontab. Within the job itself, set a TZ variable and determine the time in that time zone by whatever means necessary, and then either abort or continue based on that time. This is also similar to how one approaches a complex date-based task such as "run on the second-to-last day of each month". For that one, you can set up the job to run on the 27th through the 30th every month. Then within the job itself, determine whether it's the correct day, and abort if it's not.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Cron Jobs and Time Zones Has Anything Changed? "Martin McCormick" <martin.m@suddenlink.net> - 2020-12-02 14:40 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-02 14:40 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Dan Ritter <dsr@randomstring.org> - 2020-12-02 15:00 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? "James B" <portoteacher80@fastmail.com> - 2020-12-02 15:00 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Andy Smith <andy@strugglers.net> - 2020-12-02 17:30 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? "James B" <portoteacher80@fastmail.com> - 2020-12-02 17:30 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? "Martin McCormick" <martin.m@suddenlink.net> - 2020-12-03 14:40 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Andy Smith <andy@strugglers.net> - 2020-12-04 03:20 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Andy Smith <andy@strugglers.net> - 2020-12-04 03:40 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? David <bouncingcats@gmail.com> - 2020-12-04 03:40 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-04 11:20 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? "Martin McCormick" <martin.m@suddenlink.net> - 2020-12-06 19:30 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-07 09:10 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-02 15:10 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? "Martin McCormick" <martin.m@suddenlink.net> - 2020-12-02 18:30 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Dan Ritter <dsr@randomstring.org> - 2020-12-02 19:20 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-02 19:40 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2020-12-02 15:10 +0100
Re: Cron Jobs and Time Zones Has Anything Changed? Fabrice BAUZAC-STEHLY <noon@mykolab.com> - 2020-12-03 16:10 +0100
csiph-web