.---------------- minute (0 - 59) | .------------- hour (0 - 23) | | .---------- day of month (1 - 31) | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | | | | .----- day of week (0 - 7) (Sunday=0 or 7) OR sun,mon.. | | | | | * * * * * command to be executed
If we want to setup a cron using curl then syntax will be
0 */6 * * * /usr/bin/curl http://SCRIPT_PATH.php
So this cron will run every 4 hours
This script will run every 5 minutes
*/5 * * * * /usr/bin/curl http://SCRIPT_PATH.php