thanks marco,... it works !!! 

also,... 
we need to include this code into a function in a controller: 


   function update()
    {

    if (!defined('CRON_DISPATCHER')) 
{ 
$this->redirect('/'); exit(); 
}
           and the rest of a coding,.... 




On Friday, June 21, 2013 12:08:10 AM UTC-7, marco metal wrote:
>
> Hi Chris,
>
> Add this file cron_dispatcher.php under /app/webroot/.
>
> Then to call the function from ssh you need to write it like this:-
>
> /usr/bin/php  path_to_your_project_webroot/cron_dispatcher.php  
> /guests/update
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to