subprocess
subprocess copied to clipboard
Allow output capture into a stream
Currently, stdout/stderr can only be captured into std::string. This can be a problem for programs that dump a huge amount of output. There should be an alternate option to capture the output into an ofstream and read it whenever needed.
I am currently undecided on the syntax since std::ofstream doesn't support creation of streams from file descriptors.