
標(biāo)題: [求助] cron 計(jì)劃任務(wù)問題,我的cron要求是點(diǎn)擊網(wǎng)站一個網(wǎng)址 [打印本頁]
作者: jt23 時間: 2013-5-8 21:17 標(biāo)題: cron 計(jì)劃任務(wù)問題,我的cron要求是點(diǎn)擊網(wǎng)站一個網(wǎng)址
我的網(wǎng)站要設(shè)置一個計(jì)劃任務(wù),是通過打開一個網(wǎng)址實(shí)現(xiàn)的。官方的文件是下面這樣的。我輸入哪一個都不行。請求幫助。我應(yīng)該在后臺輸入什么才行呢?
Linux SystemYou can use one of the following commands depending on your server:
lynx -source "http://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=cron" > /dev/null
Or
wget -O /dev/null "http://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=cron" > /dev/null
If you access your website using an httpS protocol, you may want to use this command instead:
wget --no-check-certificate -O /dev/null "https://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=cron" > /dev/null
Some hosting company block the lynx and wget command in which case you should use the curl one:
curl --silent --compressed "http://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=cron" > /dev/null 2>&1
作者: admin 時間: 2013-5-8 23:57
怎么操作的
作者: imforever 時間: 2013-5-19 01:48
回復(fù) 2# admin
你好,計(jì)劃任務(wù)可以不是絕對路徑,而是http嗎?
另外為什么計(jì)劃任務(wù),每次只能導(dǎo)入49條記錄?是不是還需要修改什么配置的呢?我通過http訪問是可以導(dǎo)入更多的數(shù)據(jù)的。
希望解答。!
作者: admin 時間: 2013-5-19 15:56
不明白
作者: jt23 時間: 2013-6-10 19:20
網(wǎng)站的計(jì)劃任務(wù)是讓我直接點(diǎn)擊一個地址。就可以實(shí)現(xiàn)自動任務(wù)了
網(wǎng)站的要求是這樣的。
Linux System
You can use one of the following commands depending on your server:
lynx -source "http://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=cron" > /dev/null
Or
wget -O /dev/null "http://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=cron" > /dev/null
If you access your website using an httpS protocol, you may want to use this command instead:
wget --no-check-certificate -O /dev/null "https://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=cron" > /dev/null
Some hosting company block the lynx and wget command in which case you should use the curl one:
curl --silent --compressed "http://www.yourwebsite.com/index.php?option=com_acymailing&ctrl=cron" > /dev/null 2>&1
我都嘗試過。但是都不行。
你在計(jì)劃任務(wù)中,要求的是絕對路徑。這種http的不行。保存不成功。
@admin
歡迎光臨 WDlinux官方論壇 (http://fudaan.com/bbs/) |
Powered by Discuz! 7.2 |