Cron command to run PHP script every 10 minute
In my hosting i have a section for cron job like this:
(source: site-helper.com)The PHP script is called "croned.php", which I want it to run every 10 minutes.
What I will fill in every field?
I tried but开发者_运维百科 it didn't work.
Note: the full path to the script is: /home/axelzd/domains/hellodom.com/public_html/croned.php
Put */10
in the minutes whilst putting *
in all other fields.
Usually you can use commas to separate the cron minutes/hours etc. - 0,10,20,30,40,50
in your minute field (but I can't guarantee your admin will take it - I know Plesk does) and *
in all others . The command is more tricky, but something like this should do /usr/bin/wget -q -t 5 --delete-after URL_TO_YOUR_CRON
or php PATH_TO_YOUR_PHP_FILE_ON_THE_SERVER
try this
*/10 * * * * <command_to_be_invoked>
精彩评论