您好我想从cronjob执行我的代码。我使用了低于2的命令,但它没有工作
/path/bin/cake transaction chekFailedTransactions
cd /path && bin/cake transaction chekFailedTransactions
我的下面是我的shell代码
<?php
namespace App\Shell;
use Cake\Console\Shell;
class TransactionShell extends Shell {
public function main() {
$this->out('Some MSG');
}
public function chekFailedTransactions() {
//Code to execute
$this->out('Cron Executed!!');
}
}
?>