在
crontab文件中,这些字段是:
- 每小时的分钟。
- 一天中的小时。
- 一个月中的某天。
- 一年中的月份。
- 一周中的天。
所以:
10 * * * * blah
表示
blah每小时10分钟执行一次。
如果您希望每五分钟使用一次,请使用以下任一方法:
*/5 * * * * blah
表示每分钟但仅每五分钟一次,或者:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * blah
对于
cron不了解该
*/x符号的较旧的可执行文件。
如果之后 仍然 无法正常工作,请将命令更改为:
date >>/tmp/debug_cron_pax.txt
and monitor that file to ensure something’s being written every five minutes.
If so, there’s something wrong with your PHP scripts. If not, there’s
something wrong with your
crondaemon.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)