3
1
If I use at
to schedule a command and the trigger time is missed (e.g. due to an unexpected power failure), will it still execute at the earliest possible time? (e.g. once power comes back on and it reboots)
Example:
- I schedule
command
to run at 09:00 - The power goes out at 08:59
- The power comes back on at 09:01
Does the command
ever run?
Could be easily tested by setting an
at
, causing a 'power failure', then seeing if the job is still in the queue after the server is back withatq
. – Insane – 2015-10-13T22:57:15.4772Not necessarily just in the queue, but also whether it will run. And yes, I agree, could be tested, but I doubt it's the first or last time this question will come up. Someone probably already knows the answer and this would be a good reference for future questions. If nobody who knows answers, I'll probably end up testing it at a convenient time and updating with an answer. That said, it could still vary by machine/OS. – arcyqwerty – 2015-10-13T23:06:06.400
I would not call it a definitive answer, but related: http://unix.stackexchange.com/questions/43847/how-to-prevent-atd-from-running-past-jobs . (The current understanding from there is "yes", it will run when next possible.)
– ziesemer – 2016-08-19T15:21:45.730