Answer the question
In order to leave comments, you need to log in
How to run script in yii from cron?
Problem following: everything is already implemented and works. When called from the console ./yii foo everything works. And from krone does not work.
I've tried with and without php.
*/1 * * * * /var/www/callx-site/yii foo
*/1 * * * * /usr/bin/php /var/www/callx-site/yii foo
Answer the question
In order to leave comments, you need to log in
Is the shell indicated at the beginning of the script?
If that doesn't work, write sh which will call your script, which you can run normally by hand and feed the sh cron.
There is a good article on bashscriptin on the opennet.
Google "Advanced bash scripting"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question