2013-03-13 78 views
0

我只需要在cPanel中使用cron作業運行以下URL。將cronjob添加到cPanel中

當我試圖執行鏈接

http://www.insidewealth.com.au/index.php?option=com_acymailing&ctrl=cron

鏈接在瀏覽器中運行,但是當我嘗試添加相同的URL,因爲它是在cron作業我收到以下錯誤

bash/sh/ file not found

,當我編輯的cron作業作爲

/usr/bin/php /home/staging/public_html/index.php?option=com_acymailing&ctrl=cron

但我得到404錯誤。

我的cPanel用戶名是staging

誰能告訴我什麼是在cPanel的cron作業的語法。

Cron作業每分鐘運行一次並顯示此錯誤的電子郵件報告。

+0

你可以檢查cPanel文件管理器並確認index.php的路徑是/ home/staging/public_html /? – sinisterfrog 2013-03-13 04:09:06

+0

@sinisterfrog - 是的,該文件是在正確的位置。 – Kerry 2013-03-13 08:48:31

+1

通過輸入'which php'來檢查php的路由。 – fedorqui 2013-03-13 16:44:07

回答

0

使用帶完整URL的wget函數。

+0

您能詳細解釋一下您的解決方案嗎? – 2013-03-14 15:49:56