Here's one example of how to do that:
http://filchiprogrammer.wordpress.com/2008/01/08/how-to-call-a-controlleraction-in-crontab/
These examples are for cron jobs, but it works for regular CLI calls
as well.
There are a couple different cron_dispatcher variations floating
around if you google for that.
On Feb 11, 11:48 am, "Novice Programmer" <[EMAIL PROTECTED]>
wrote:
> Hello All,
>
> I had a php script which i used to execute in background. This script was
> called from some other php script. I used following to execute the script in
> background:
>
> $backscript = "test.php";
>
> exec("$path_to_php $backscript params> /dev/null &");// (>/dev/null & part
> is what sends to background)
>
> Now i have turned this background script into an action of the controller
> but still want to execute it in background. I am trying it as follows:
>
> $backscript = "mycontroller/action";
> exec("$path_to_php $backscript params> /dev/null &");// (>/dev/null & part
> is what sends to background)
>
> but with no success. Any help or pointers on doing this in cake will be
> highly appreciated.
>
> --
> Thanks & Regards,
> Novice (http://ishuonweb.wordpress.com/).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---