I would to run a command using popen
, but I want to pipe the output to another method. My goal is to display a custom output: pipe the build output from compiling my project to a method which just outputs the progress percentage, and I also want to log the raw output to a file.
I don't want to have to wait for the subprocess to finish to be able to read its STDOUT.