Monday, September 28, 2009

RE: Run a cron Job

Yeah the CP has basic and advanced. Basic you select days/month/min/time and
so on and enter /path/to/cake/console/cake -app /path/to/your/app
shell_task_name
Advanced is the *** input

Will give it another shot.

But based on the set up above if I have my shell code (reports.php) in
app/vendors/shell I would use something like /mypath/to/cake/console/cake
-app /mypath/app reports (mypath being changed obviously)

Dave

-----Original Message-----
From: brian [mailto:bally.zijn@gmail.com]
Sent: September-28-09 2:15 PM
To: cake-php@googlegroups.com
Subject: Re: Run a cron Job


On Mon, Sep 28, 2009 at 12:24 PM, Dave Maharaj :: WidePixels.com
<dave@widepixels.com> wrote:
>
> Yeah I set up a reports.php like they did in the Cookbook but even
> when I try to run it from the control panel I keep getting '/bin/sh:
> 15: command not found'

It looks like you're trying to feed the shell the example I posted.
The "15" being the first part, which the shell doesn't understand. The
"15 0 * * *" part of the line is what tells cron when to run the job.

How does your control panel set up cron jobs? Does it have a widget for
setting the time of day? If so, you probably want to do that and then
provide just this part as the job:

/path/to/cake/console/cake -app /path/to/your/app shell_task_name

Those paths are from root.

--~--~---------~--~----~------------~-------~--~----~
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: