CRON JOB

We put a small script in cron job and change permission to execute.

clip_image001

Now modify cron job using “crontab –e”.

clip_image002

clip_image003

This script run every one minute.

clip_image004

As per script we can see it’s updated in every one minute.

clip_image005

Some example:-

00 09-18 * * 1-5

  • 00 – 0th Minute (Top of the hour)
  • 09-18 – 9 am, 10 am,11 am, 12 am, 1 pm, 2 pm, 3 pm, 4 pm, 5 pm, 6 pm
  • * – Every day
  • * – Every month
  • 1-5 -Mon, Tue, Wed, Thu and Fri (Every Weekday)
00 09-18 * * *
  • 00 – 0th Minute (Top of the hour)
  • 09-18 – 9 am, 10 am,11 am, 12 am, 1 pm, 2 pm, 3 pm, 4 pm, 5 pm, 6 pm
  • * – Every day
  • * – Every month
  • * – Every day of the week