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 ??

1
  • I do know you can read the $exitCode of run command for success or failure of an command. But I am need to parse an successful output to take further action. Commented May 2, 2013 at 16:30

1 Answer 1

2

Try using this extension, may be helpful http://www.yiiframework.com/extension/tconsolerunner

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.