开发者

Cron command to run PHP script every 10 minute

In my hosting i have a section for cron job like this:

Cron command to run PHP script every 10 minute

(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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜