title: catch contents generated during run by subprocess in Python
body: <p>I would like to catch contents generated during the run instead of output since I realized that the output from program is unfortunately not the useful information.</p>
  <p>basically my code:</p>
  <pre><code>command = &quot;usearch11 -threads 8 -fastq_filter pmFLP.fastq -fastq_maxee 1  -fastq_minlen 120 -fastq_maxns 0  -fastaout S1--1.QC.fasta&quot;
  with Popen(command, stdout=PIPE, stderr=None, shell=True) as process:
      output = process.stdout.readlines()
      print(output)
  </code></pre>
  <p>and what is displayed in the terminal after/during running the code:</p>
  <pre><code>C:\Users\Desktop\Daten\test_Ordner&gt;python test.py
  00:00 4.6Mb  FASTQ base 33 for file pmFLP.fastq
  00:01 5.3Mb   100.0% Filtering, 98.6% passed
      188650  Reads (188.7k)
        1297  Discarded read with &gt; 0 Ns
        1132  Discarded reads with expected errs &gt; 1.00
      185957  Filtered reads (186.0k, 98.6%)
  b'usearch v11.0.667_win64, 137Gb RAM, 64 cores\r\n(C) Copyright 2013-18 Robert C. Edgar, all rights reserved.\r\nhttps://drive5.com/usearch\r\n\r\nLicense: kleine@planton.de\r\n\r\n'
  </code></pre>
  <p>and this part is what i need:</p>
  <pre><code>00:00 4.6Mb  FASTQ base 33 for file pmFLP.fastq
      00:01 5.3Mb   100.0% Filtering, 98.6% passed
          188650  Reads (188.7k)
            1297  Discarded read with &gt; 0 Ns
            1132  Discarded reads with expected errs &gt; 1.00
          185957  Filtered reads (186.0k, 98.6%)
  </code></pre>
  <p>any help will be appreciated!!</p>