【发布时间】:2012-11-14 23:30:21
【问题描述】:
我希望通过使用 cakephp shell 控制台脚本在 cakephp 2.0 中通过 cron 作业发送批量电子邮件。为此,我需要在 linux 的 .bashrc 中设置 PATH。
我推荐了http://book.cakephp.org/2.0/en/console-and-shells.html
我写了export PATH="$PATH:/directory_name/web/cakephp/lib/Cake/Console",如.bashrc 中的链接所述。当我在控制台中写蛋糕时,它说:
The program 'cake' is currently not installed. To run 'cake' please ask your administrator to install the package 'cakephp-scripts'
我哪里错了?我该如何开始?
【问题讨论】:
-
那么,是否安装了“cakephp-scripts”?
-
有没有办法在不安装 cakephp-scripts 包的情况下访问 cakephp shell?抱歉,我对此完全是个菜鸟,因此提出了这样一个问题