简体   繁体   English

Cron工作不是每30分钟启动一次

[英]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.

相关问题 每天每30分钟从凌晨5点开始运行cron - run cron from 5am to mightnight, every 30minutes, everyday 我需要使用cron作业每30分钟恢复一次数据库(mysql) - I need to restore a database (mysql) every 30 minutes using a cron job 如何在不同的时间运行3个PHP脚本,每30分钟作为cron作业? - How to run 3 php scripts in different times, every 30 minutes as cron job? 如何创建一个 CRON 作业并每 30 分钟或每小时设置一次,然后在 5 个时间间隔后取消它 php - How to create a CRON job and set it for every 30 minutes or hour and then cancel it after 5 intervals php Laravel在场上加30分钟。 示例:$ is_expired = $ created_at + 30minutes; - Laravel Add 30 minutes in field. Example: $is_expired = $created_at + 30minutes; PHP-每30分钟发送一次通知,而无需使用cron - PHP - Send notification every 30 minutes without using cron cron / wget-每5小时30分钟运行一次页面 - cron/wget - Run page every 5 hours and 30 minutes 在特定时间和每天每15分钟运行一次Cron作业 - Run Cron Job Every 15 Minutes in specific time and every day 每2小时执行一次cron作业,持续30分钟 - execute cron job every 2 hour with 30 min duration 除了第一个小时“0”的第一分钟“0”外,每2分钟运行一次cron作业 - Run cron job every 2 minutes except the first minute “0” of the first hour “0”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM