简体   繁体   中英

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.

Would appreciate if you see any issue with my line below after hitting

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 . Some unixes do not support the */ , so although perhaps not likely, it's worth a shot hardcoding the minutes.

I use this configuration and it works for me,

0-59/15 * * * *

This is for running every 15 mins. for your condition replace 15 by 30.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM