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 !


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -