Skip to content
Advertisement

How does Anacron works in linux?

How does the Anacron runs even after the system shutdowns in linux? How does it look for the commands to run after the system shutdown?

Advertisement

Answer

If you have a backup script scheduled everyday at 11 PM as a regular cron job, and if your laptop is not up at 11 PM, your backup job will not be executed.

However, if you have the same job scheduled in anacron, you can be sure that it will be executed once the laptop come back up.

So what it means that Anacron wont execute at 11 PM as you laptop is off(and it doesn’t have special power to switch on the laptop 🙂 ), but it will surely execute whenever you switch on you laptop.

For mode details see http://www.thegeekstuff.com/2011/05/anacron-examples/

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement