Re: Shell as Cronjob - Working, but giving Errors as soon as I load any model
Hey,
ok I found the solution :)
The problem was that despite of havin PHP 5 running on my server, the
CLI version was 4.x and used by default. I changed my cron command to
the following:
/usr/bin/php5 /usr/www/users/xxx/dev/cake/console/cake.php -app "/usr/
www/users/xxx/dev/app" statistics emailme
I did not know how to build in a manual call to the right CLI, but
with this command the cron is called without any errors, emails are
sent and even the data I gather within my shell from my model is set
for the email view and displayed when sending out the email. This is
really great as I have many tickets regarding cron emails and now I am
finally able to start coding them :)
Maybe this will help others to start coding crons.
Regards,
DD
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home