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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -