Pages

Crontab Job


·        List all the cron job
root@hostname]# crontab -l                   
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /root/checksendmail >/dev/null 2>&1

·       Format
Your cron job looks as follows for user jobs:
1 2 3 4 5 /path/to/command arg1 arg2
Or
1 2 3 4 5 /root/backup.sh

Where,
§  1: Minute (0-59)
§  2: Hours (0-23)
§  3: Day (0-31)
§  4: Month (0-12 [12 == December])
§  5: Day of the week(0-7 [7 or 0 == sunday])
§  /path/to/command - Script or command name to schedule