Run missed cronjobs when computer turns on

I have some cronjobs running at certain times of the day but sometimes my computer is switched off when they are scheduled to run.

Is there anyway for these to run as soon as the computer is turned back on?


cron is not designed to do that, there are other tools that will, such as anacron.

A workaround is to specify a task twice in the crontab, once at the time you want it to happen and again with the time @reboot so it will run when the system starts.

If you need a minimum amount of time before this task should run, you can implement that with a wrapper script.