php - Not Able To Run Consolecommand From Cron Tab -
i have written consolecommand runs awesome windows command prompt , linux terminal. problem , when add command in cron tab following error when been executed. this script must run command line. what problem ? here go: class reportgeneratorcommand extends cconsolecommand { public function gethelp(){ echo 'this command genearates periodic reports'."\n\n"; return; } public function run($args){ echo "\n hello world! \n"; } } i used run command cron as php /home/pathtomyapp/console.php mycommand now modified to /usr/local/bin/php /home/pathtomyapp/console.php mycommand and did !