You type (paste) something like this into a terminal window:

/path/to/cake/console/cake -app /path/to/cake/app

you then add the name of the shell you want to run. My cron task is
called "hourly" as in my previous post.
When running this as a cron job (= automatically) I have found the
return from the shell causes problems so I add " >>/
dev/null 2>&1 " at the end which swallows any output.

On your Mac you might not want to run it as a cron. But if you do
there are applications to download that give you a graphical tool to
set cron jobs (or Apple's replacement as the case may be). The actual
"cron" tools are aparently now seen av deprecated by Apple (sigh) but
they are still there.

/Martin


On Jan 20, 2:57 pm, Kyle Decot <[email protected]> wrote:
> I'm really confused about shell tasks. How would I invoke the task? I
> know that I would use terminal (I'm on a mac) but how would I do this?
> Second, how do you automate this process so that it would run every
> hour?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to