Using both RunCommand and ShellStream

Oct 1, 2015 at 8:45 PM

I know how to use RunCommand to get output text, error text and the return code. I also have been looking at examples of how to use ShellStream to interact with the shell. In my case I need to execute a command that runs for a long time with lots of output. The command eventually terminates and returns a return code which I need.

But I also need to the see the out as it is being written rather than waiting until the end. How do I accomplish both these tasks at the same time?