我希望通过cakephp shell控制台脚本通过cakephp 2.0中的cron作业发送批量电子邮件。为此,我需要在linux中的.bashrc中设置PATH。
我提到http://book.cakephp.org/2.0/en/console-and-shells.html
我在.bashrc的链接中写了export PATH="$PATH:/directory_name/web/cakephp/lib/Cake/Console"
。当我在控制台写蛋糕时,它说:
The program 'cake' is currently not installed. To run 'cake' please ask your administrator to install the package 'cakephp-scripts'
我哪里错了?我如何开始这个?
答案 0 :(得分:0)
您可以使用绝对路径运行Cake的控制台:
$ /directory_name/web/cakephp/lib/Cake/Console/cake