title: stop subprocess from printing output
body: <p>I have the following line of code.  When I run It I get the display below.  I would like for it not to display anything.  I am taking care of the print statement somewhere else in the code.  How can I suppress the output?  I have tried &quot;capture_output=False&quot; and &quot;output=None&quot; but none of these options seem to work.</p>
  <pre><code>retval = subprocess.run([&quot;ping&quot;, &quot;-c1&quot;, &quot;-i0.1&quot;, &quot;-W1&quot;, &quot;-q&quot;, i], capture_output=False)
  if retval == 0:
      alive.append(i)
  </code></pre>
  <pre><code>
  --- 10.21.30.1 ping statistics ---
  1 packets transmitted, 0 packets received, 100.0% packet loss
  PING 10.21.30.2 (10.21.30.2): 56 data bytes
  
  --- 10.21.30.2 ping statistics ---
  1 packets transmitted, 1 packets received, 0.0% packet loss
  round-trip min/avg/max/stddev = 8.974/8.974/8.974/0.000 ms
  PING 10.21.30.3 (10.21.30.3): 56 data bytes
  
  --- 10.21.30.3 ping statistics ---
  1 packets transmitted, 1 packets received, 0.0% packet loss
  round-trip min/avg/max/stddev = 22.444/22.444/22.444/0.000 ms
  PING 10.21.30.4 (10.21.30.4): 56 data bytes
  
  --- 10.21.30.4 ping statistics ---
  1 packets transmitted, 1 packets received, 0.0% packet loss
  round-trip min/avg/max/stddev = 13.443/13.443/13.443/0.000 ms
  PING 10.21.30.5 (10.21.30.5): 56 data bytes
  
  --- 10.21.30.5 ping statistics ---
  1 packets transmitted, 1 packets received, 0.0% packet loss
  round-trip min/avg/max/stddev = 14.399/14.399/14.399/0.000 ms
  PING 10.21.30.6 (10.21.30.6): 56 data bytes```
  
  </code></pre>