should optionally require admin credentials passed as arguments or should confirm CLI is being run by particular system users (e.g. root).
lightflowmark wrote: > > I'm actually working on a proposal to do exactly this at the moment. > > What features would people like to see on this? > > Currently, the proposed Zend_Schedule component will: > 1) be run via CLI scripts from the cron > > 2) uses Zend_Application to load the bootstrap of an existing > application to load config, include paths, etc. > > 3) load user-written classes which define tasks - e.g. mailTasks, > databaseTasks, etc. > > 4) run functions from those classes based on a prefix - e.g. you might > have a script running every day which runs all functions prefixed 'daily', > which would run mailTasks::daily_Emails(), > databaseTasks::daily_DoArchiving(), etc. and another script running every > hour which would run all functions prefixes 'hourly' > > It's actually very simple to implement as outlined, and I'd be interested > to see what other features people would want from this. > > Yours, > Mark > > > > > Raphael Stolt-2 wrote: >> >> Hi Stefan, >> >> >> >> >> You might also take a look at Zend_Tool_Project_Providers which allow you >> to >> create custom providers which handle the scenarios you described in the >> first mail. Plus by hooking them into the Zend Tool environment you can >> call >> them as desired via CLI. >> >> Hope that helps a bit. >> >> Cheers, >> >> Raphael Stolt >> >> 2009/8/20 Stefan Sturm <stefan.s.st...@googlemail.com> >> >>> Hello, >>> >>> I found this tutorial to setup a cli enviroment: >>> >>> http://webfractor.wordpress.com/2008/08/14/using-zend-framework-from-the-command-line/ >>> >>> But I would like to use Zend_Application to handle this... >>> >>> Perhaps somebody can help me on this. >>> >>> Thanks and greetings, >>> Stefan Sturm >>> >> >> > > -- View this message in context: http://www.nabble.com/Best-to-use-CLI-in-my-ZF-1.9-Application-tp25045676p25230433.html Sent from the Zend Framework mailing list archive at Nabble.com.