Indeed, however I dislike that tutorial on running shells as cronjobs. Once you get yourself a nice shell to do what you want, getting it to run in cron I've found its much easier to actually create a new little bash script that runs cake __whatever__ for you, then just executing your new bash script in cron.
Example: Lets say you've written your shell task as do_something so you could run: "cake do_something" from the root of your application. To get that to run in a cronjob create a little worker bash called "do_something.sh" with the following: #!/bin/bash clear cd /path/to/your/app/ /path/to/your/cake/libs/cake do_something Then all you'd have to do in your cron is this: 0 5 * * * /path/to/do_something.sh Much more simple IMHO. Hope that helps, Nick On Dec 7, 10:56 am, Miles J <[email protected]> wrote: > Well your supposed to be using shells, not hitting a controller with a > cronjob. > > http://book.cakephp.org/view/846/Running-Shells-as-cronjobs Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
