[英]Run url ervery 2 minutes using cron jobs in php ubuntu not working
我想在php中每2分鍾執行一次url,所以我按照步驟進行
1) crontab -e
2)select nano editer
3)insert the line
* * * * * / usr / bin / GET http://www.gmail.com/sendMail
保存文件后,我得到了回應
no crontab for root - using an empty one
crontab: installing new crontab
命令是否有任何錯誤。 誰能幫我嗎。
您可以使用curl來訪問URL
遵循以下步驟:
crontab -e
在文件中添加以下行
*/2 * * * * /usr/bin/curl www.google.com
要了解更多關於卷曲的知識,您可以做
man curl
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.