Thanks for both of those - I'll try them out and see what happens.  i
had already seen the CakePHP tutorial, but just couldn't quite get my
head around it.  I think the problem was that it demonstrates running
scripts on Linux, and I couldn't get it to work on Windows.  But I'll
try again and see how it goes.

Thanks again for the replies.



On Dec 8, 10:52 am, nurvzy <nur...@gmail.com> wrote:
> 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 <mileswjohn...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to