Monday, September 28, 2009

Re: Run a cron Job

The cake shell is prefect for this.
I do cron tasks by creating Cake shell tasks and from there I do a
requestAction if I really need to call an action.

This is what I tell cron:
/ful/path/to/cake/console/cake -app /full/path/to/app shellname >>/dev/
null 2>&1

The last bit (dev/null and that) makes the shell totally silent which
is needed unless you want the cron to terminate unexpectedly. But when
testing yourself you should leave that out so you can see the output.

On Sep 27, 6:27 pm, "Dave Maharaj :: WidePixels.com"
<d...@widepixels.com> wrote:
> Trying to set up an action to run at a specific time. Found a few sites
> saying replace
> require CORE_PATH.'cake'.DS.'bootstrap.php';
> in index.php but no longer appears to be there.
>
> Any good places to look where to set this up?
>
> Thanks
>
> Dave
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: