CRON – Automatically Run Jobs on Your Website - The format for...
(Page 2 of 4 )
The format for CRON is “CRON * * * * * Command to execute"
Each asterisk represents a field in the command and can contain the following values. If you do not want to specify a value for that particular field, leave the asterisk in that position in the CRON statement line. Each of the five fields is separated by white space.
Here are the values that each field (left to right) can have other than the asterisk:
Field -------- Value ----- Description
minute ----- 00-59 ------exact minute the cron executes
hour -------- 00-23 ------ hour of the day the cron executes(0 =midnight)
day --------- 01-31 ------ day of the month the cron executes
month ------ 01-12 ------ month of the year the cron executes
weekday --- 00-06 ----- ay of the week the cron executes(Sunday = 0, Monday = 1, Tuesday = 2, etc)
command ---varies ------ sequence of commands to execute
What prompted the need for the CRON on our site was our use of the software package that required that we copy the ClickBank master file into a file on the Boomer-eZine website periodically so our copy is kept current with the ClickBank master.
Next: Since we get... >>
More Web Development Articles
More By Jase Dow