title: How to get live, non-blocking output from process
body: <p>I want to be able to capture the output of a cli program (before it terminates) for which I don't have the source code. </p>
  
  <p>Everything I have found was either done with pipes, which to my understanding only send the output on a flush or on exit of the program.
  One solution I have found on <a href="https://www.codeproject.com/Articles/16163/Real-Time-Console-Output-Redirection" rel="nofollow noreferrer">Codeproject</a> is only for Windows.</p>