|
cron is a Linux system process that will execute a program at a preset time. To use cron you must prepare a text file that describes the program that you want executed and the times that cron should execute them. Then you use the crontab program to load the text file that describes the cron jobs into cron.
Here is the format of a cron job file:
[min] [hour] [day of month] [month] [day of week] [program to be run]
where each field is defined as
[min] | Minutes that program should be executed on. 0-59. Do not set as * or the program will be run once a minute. |
[hour] | Hour that program should be executed on. 0-23. * for every hour. |
[day of month] | Day of the month that process should be executed on. 1-31. * for every day. |
[month] | Month that program whould be executed on. 1-12 * for every month. |
[day of week] | Day of the week. 0-6 where Sunday = 0, Monday = 1, ...., Saturday = 6. * for every day of the week. |
[program] | Program to be executed. Include full path information. |