O'Reilly logo

CompTIA Linux+ Certification Guide by Philip Inshanally

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Anacron

Interestingly, Anacron is not meant as a replacement for cron , but instead it's meant to be used in scenarios where the environment involves the system being off some of the time. Furthermore, Anacron does not expect the system to be on at all times. For instance, laptops are shut down from time to time. Another distinct feature of Anacron is the fact that the duration is defined in days or monthly and not hours or minutes. If you have a job to be executed at a certain time and the system is off, rest assured when the system is powered up Anacron will execute the job. We can take a look at the anacrontab file:

root@philip-virtual-machine:/home/philip# cat /etc/anacrontab# /etc/anacrontab: configuration file for anacron# See anacron(8) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required