So, I could use the
crontab command, with:
23 0 * ...
23:00 my laptop can be turned off, or hibernated. In that case I want a command to be executed as soon as it will be possible. How can I do that?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
@reboot in addition to your timing (if your crond supports it):
@reboot command 23 0 * * * command
The obvious caveat is that if you boot your computer at 22:59 the command will run twice in very short order. Make sure the command can be run twice at the same time without one process stomping on the other.