How to Write Schedule for Crontab - Php Cron Job Setup
by Dinesh[ Edit ] 2014-03-20 11:03:26
How to Write Schedule for Crontab - Php Cron Job Setup
The basic format of a crontab schedule consists of 6 fields, separated by spaces, formatted as follows:
minute hour day month day-of-week command-line-to-execute
The acceptable values for each of the 6 fields are:
| Field | Range of values |
| minute | 0-59 |
| hour | 0-23 |
| day | 1-31 |
| month | 1-12 |
| day-of-week | 0-7 (where both 0 and 7 mean Sun, 1 = Mon, 2 = Tue, etc) |
| command-line-to-execute | the command to run along with the parameters to that command if any |