[英]Cron job not kicking off every 30minutes
i want the following page to be accessed to update news for my site, but i noticed it is not executing every 30minutes as i would like it to. 我希望访问以下页面以更新有关我的网站的新闻,但是我注意到它没有按我希望的那样每30分钟执行一次。
Would appreciate if you see any issue with my line below after hitting 如果您在点击后在下面看到我的行有任何问题,将不胜感激
crontab -e crontab -e
# m h dom mon dow command
*/30 * * * * /usr/bin/wget http://servername.us/application/api.php5?action=topnews_update=1 -q > /dev/null
Thanks. 谢谢。
Try 0,30
rather than */30
. 尝试
0,30
而不是*/30
。 Some unixes do not support the */
, so although perhaps not likely, it's worth a shot hardcoding the minutes. 某些Unix不支持
*/
,因此尽管可能不太可能,但值得对分钟进行硬编码。
I use this configuration and it works for me, 我使用此配置,它对我有用
0-59/15 * * * *
This is for running every 15 mins. 每15分钟运行一次。 for your condition replace 15 by 30.
根据您的情况,将15乘以30。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.