Hi i want execute my code from cronjob. I have used below 2 command but its not working
/path/bin/cake transaction chekFailedTransactions
cd /path && bin/cake transaction chekFailedTransactions
Where my below is my shell code
<?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!!');
}
}
?>