Re: Scheduled Task

2007-09-21 Thread guigouz

you can also use
wget http://mysite/controller/action on the cron job, that would
trigger the action


On Sep 21, 2:54 am, 1/2 aßrain <[EMAIL PROTECTED]> wrote:
> That's what I was after - thanks!
>
> On Sep 21, 2:57 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> > It's just a slightly modified app/webroot/index.php, to take a command
> > line parameter of the action to perform.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Scheduled Task

2007-09-20 Thread ½aßrain

That's what I was after - thanks!

On Sep 21, 2:57 pm, Grant Cox <[EMAIL PROTECTED]> wrote:

> It's just a slightly modified app/webroot/index.php, to take a command
> line parameter of the action to perform.
>


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Scheduled Task

2007-09-20 Thread John David Anderson (_psychic_)


On Sep 20, 2007, at 10:57 PM, Grant Cox wrote:

>
> Are you asking how to simulate a CRON job in Cake, or how to set up
> CLI access for a real CRON job?  If the latter, see
> http://groups.google.com/group/cake-php/browse_thread/thread/ 
> ca93998efc8ff040/356b65885defec7c
>
> It's just a slightly modified app/webroot/index.php, to take a command
> line parameter of the action to perform.

If you're using 1.2, console tasks are really great too.

Wasn't there a podcast about that lately?!

-- John


> On Sep 21, 2:51 pm, 1/2 aßrain <[EMAIL PROTECTED]> wrote:
>> Hi All,
>>
>> I'm looking for a way to have a cron job run once a day, and pull  
>> back
>> some data from my cake models.
>>
>> Can anyone point me in the right direction?
>>
>> Should I create a script similar to bake.php? Where in my app folder
>> should it go?
>>
>> any other tips?
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Scheduled Task

2007-09-20 Thread Grant Cox

Are you asking how to simulate a CRON job in Cake, or how to set up
CLI access for a real CRON job?  If the latter, see
http://groups.google.com/group/cake-php/browse_thread/thread/ca93998efc8ff040/356b65885defec7c

It's just a slightly modified app/webroot/index.php, to take a command
line parameter of the action to perform.


On Sep 21, 2:51 pm, 1/2 aßrain <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm looking for a way to have a cron job run once a day, and pull back
> some data from my cake models.
>
> Can anyone point me in the right direction?
>
> Should I create a script similar to bake.php? Where in my app folder
> should it go?
>
> any other tips?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---