CakePHP shell 作为 Cron Job 在 godaddy 上不起作用
我在 CakePHP 中开发了一个应用程序,并使用 Shell 设置了一个 cron 作业。我已将应用程序托管在我们的开发服务器 bluehost 中,并设置了 cron 作业及其工作正常。
cron 作业命令是
/home4/enventur/public_html/pennystock/cake/console/cake -app "/home4/enventur/public_html/pennystock/app" message_board_counts
当我转移到实时服务器时,Godaddy,并设置 cron 作业不起作用
/web/cgi-bin/php $HOME/html/pennystock/cake/console/cake -app "$HOME/html/PennyStock/app" message_board_counts
还尝试了以下模式,
$HOME/html/pennystock/cake/console/cake -app "$HOME/html/PennyStock/app" message_board_counts
谁能帮我解决这个问题?
预先感谢
Nidhin
I have developed a application in CakePHP, and setup a cron Job with Shell. I have hosted the application in our development server, bluehost and setup the cron Job and its working fine.
The cron Job Command was,
/home4/enventur/public_html/pennystock/cake/console/cake -app "/home4/enventur/public_html/pennystock/app" message_board_counts
When I moved to the live server, Godaddy, and setup the cron Job its not working
/web/cgi-bin/php $HOME/html/pennystock/cake/console/cake -app "$HOME/html/PennyStock/app" message_board_counts
Also tried the below patterns,
$HOME/html/pennystock/cake/console/cake -app "$HOME/html/PennyStock/app" message_board_counts
Can anyone help me to solve this issue?
Thanks in Advance
Nidhin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您在 Godaddy 上尝试过的两行代码中,都有“pennystock”和“PennyStock”。如果文件系统区分大小写,则需要使它们相互匹配并与实际目录的名称匹配。在开发服务器上的原始 cron 作业中,您使用的是全部小写字母。
In both lines that you tried on Godaddy, you have "pennystock" and "PennyStock". If the filesystem is case sensitive, you need to make those match each other and match the name of the actual directory. In your original cron job on your development server you're using all lower case.