I would use pcntl_* functions or proc_open for this. They let you open sub-processes and read stderr/stdout and feed input in on stdin. If you want an example of a class wrapper around proc_open() see https://github.com/markstory/asset_compress/blob/master/Lib/AssetProcess.php
-Mark On Wednesday, 10 September 2014 04:59:44 UTC-4, Dieter Gribnitz wrote: > > Here is a simple scenario. > I have a shell script in the App\Shell namespace. > When I run the task I would like to have some console commands such as > `grunt update` triggered. > Is it possible to run these types of commands from the ConsoleShell? > Some of these tasks may require user input thus it cannot be run without > feedback from the user. > -- 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/d/optout.
