I do it GET with a very simple layout.

My cron job simply runs GET full_url_here > /dev/null

On 08/04/06, shaunster <[EMAIL PROTECTED]> wrote:
>
> I appologize if this is a simple question but I'm not very familiar
> with the PHP command line interface.
>
> Anyone know how I can exectute CakePHP code via command line? I would
> like to create a cron job that executes specific code within my
> controller but other than having the cron use wget to run a URL I am
> not sure how to do this. It seems to me like it would be more reliable
> to execute the code using a command line but I'm not sure what that
> command line would look like and how to pass the controller and
> argument data through it.
>
> I am guessing I would have it execute something like:
>
> php PATH_TO_FILES/app/index.php 'SET_SOME_VARIABLES_HERE';
>
>
> >
>

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

Reply via email to