Is this the right syntax for getting a cron job to run every 20 minutes?
*/20 * * * *
??
Cheers
| SitePoint Sponsor |



Is this the right syntax for getting a cron job to run every 20 minutes?
*/20 * * * *
??
Cheers





Explanation of field values:
* * * * * /home/user/domain-www/script_name
1 2 3 4 5 path to script
1 -- minute 00 - 59
2 -- hour of day 00 - 23 (midnight is 00)
3 -- day of month 01 - 31
4 -- month of year 01 - 12
5 -- day of week 01 - 07
------------------------------------------------------------------
This will run the cron every 15 minutes:
05,20,35,50 * * * * /home/user/domain-www/script_name
1 2 3 4 5 path to script
=>Note that you need double-digits if there is no * or /
------------------------------------------------------------------
This will run the cron 4 times a day - midnight, 6AM, Noon, and 6PM:
* 00,06,12,18 * * * /home/user/domain-www/script_name
1 2 3 4 5 path to script
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes





Yes that is correct, ChilliBoy
Can someone please explain to me what a cron job is? Thank you.
Viper420



Cheers!





Viper...
Cron is a small Unix program that allows you to "schedule" the server to do specified things.
These are usually things like:
- Rotate images or content.
-Take a "snapshot" of a dynamic page
It's similar to the Windows Task Manager.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
Bookmarks