Quote Originally Posted by masonwheeler
There's probably even a way to redirect STDOUT to some sort of memory stream instead of to a file. Not certain, though.
You can redirect STDOUT, STDIN and STDERROR to any handle capable of reading/writing including pipes. So you create a pipe, redirect output of another process to this pipe and then read the data in it. At least it works like this in Windows. There's even an example of this in the Platform SDK.