1

I am trying to build some cron jobs to do backup some critical data on my Yii WebApplication I have built the the CConsoleCommand Class that needs to run. It runs fine and the command is executed

However my job requires the application to parse the output of the command being run and act accordingly.

Is there any way to do this from inside Yii framework?? Or is there in any alternative in php-CLi that will let me easily integrate my current class in Yii ??

4

1 回答 1

2

尝试使用这个扩展,可能会有所帮助 http://www.yiiframework.com/extension/tconsolerunner

于 2013-05-03T05:05:43.390 回答