Wednesday, May 2, 2018

cron vs anacron

=> Minimum granularity with cron is minute while it is in days with anacron.

=> Cronjob can be scheduled by any normal user while anacron can be scheduled only by the super user.

=> Cron expects the sync to be up & running while the anacron doesn't expect the sys to be up & running all the time. In case of Anacron if a job is schedule and the system is down that time, it will execute the job as soon as the system is up & running.

=> Cron is ideal for servers while anacron is ideal for desktops & Laptops.

=> Cron should be used when you wants a job to be executed at a particular hour and minute anacron should be used in when the job can be executed irrespective of hour and nimute.

No comments:

Post a Comment