Author Topic: Cron  (Read 363 times)

chris harry

  • Blue Belt
  • ****
  • Posts: 141
  • Karma: +0/-0
Cron
« on: May 28, 2014, 06:51:27 PM »
Hello

Differentiate between Cron and Anacron.

pradeep

  • Green Belt
  • *****
  • Posts: 216
  • Karma: +1/-0
Re: Cron
« Reply #1 on: May 28, 2014, 06:54:32 PM »
Hello

a.) Minimum granularity with Cron is minute while it is in days with Anacron.
b.) Cron job can be scheduled by any normal user while Anacron can be scheduled only by the super user.
c.) Cron expects the system to be up and running while the Anacron doesn’t expect the system to be up and running all the time. In case of anacron if a job is scheduled and the system is down that time, it will execute the job as soon as the system is up and running.
d.) Cron is ideal for servers while Anacron is ideal for desktops and laptops.
e. ) Cron should be used when you want a job to be executed at a particular hour and minute while Anacron should be used in when the job can be executed irrespective of the hour and minute.

With Thanks
Pradeep Datasoft

siljy.datasoft

  • Green Belt
  • *****
  • Posts: 453
  • Karma: +0/-0
Re: Cron
« Reply #2 on: July 07, 2014, 05:26:40 AM »
hiiiiiiiiiii


Cron
Cron allows users to schedule tasks for very specific times. All applications of cron can schedule tasks to the minute, and some implementations even allow users to pinpoint the precise second at which the system should begin the action. Tasks can run on specific dates, or recur at periods as small as every minute. Cron also allows users in large, national systems to designate the time zone under which their tasks fall, to ensure proper execution using local times.

Anacron
Cron is suitable for most tasks, but its biggest weakness is that it ceases to function if the system goes down. If you schedule a task for a specific date and the system is down on that date, the task will never execute. Anacron, a companion process to cron, allows you to schedule tasks that will run on either a specified date or the first available cycle after that date. Anacron only allows daily scheduling, forcing users who need tighter scheduling to rely on cron for their tasks.

Thanks