Wednesday, June 26, 2013

cron - Scheduling jobs

cron makes tasks automatically run in the background at regular intervals. crontab file contains the schedule of cron entries to be run. Use below command to edit it.
#crobtab -e

Syntax:
*  *  *  *  *  command

first = day of week (0 - 6)
second = month (1-12)
third = day of month (1-31)
fourth = hour (0-23)
fifth = minute (0 - 59)

E.g. 15  5  *  *  *  script.sh

No comments:

Post a Comment