On Thu, Sep 25, 2008 at 1:02 PM, José de Menezes Soares Neto <[EMAIL PROTECTED]> wrote: > I am using Zend Framework to develop a web system. > It has a function (let's call it "funcA") required to run periodically. > Thus, I would like to use crontab (Linux command) to run "funcA" every 15 m. > > Unfortunately, it seems that there are some configurations on the bootstrap > file, I need to access "funcA" through HTTP > > i.e. > > */15 * * * * wget -O /dev/null http://127.0.0.1/test/html/cron/pageA > > Is it possible to create a cron job to run "funcA" by using Zend Framework > without HTTP request (use the absolute path, e.g: > > */15 * * * * > /opt/lampp/htdocs/test/html/application/controllers/CronController.php > > ) > > Regards, > > José > > P.S: This is the same question someone did on the internet, but without > answers... >
I don't think you can bypass the entire framework with a simple call. :-) For starters, we run our webs all on public and private (10.x.x.x) IPs and what we do with cron-related "calls" is use the private IP. The lag is 0, and we still understand what we build in 6-12 months. ;-) There has been a similar discussion on this mailinglist about MVC on the shell, I think someone mentioned Zend_Console_Getopt in the process so search nabble [archive] for that and maybe that gives you a couple ideas on how to go forward. Till
