title: os.system("ping") call very slow
body: <p>I have the following script:</p>
  
  <pre><code>#!/usr/bin/env python3
  import os
  
  i = 1
  while i != 255:
      Test = os.system("ping -c 1 10.0.0." + str(i) + " &gt; /dev/null")
      if Test == 0:
          print("Host: 10.0.0." + str(i) + " is up!");
          i = i + 1
      else:
          i = i + 1
  </code></pre>
  
  <p>It is an NMap-like python script, that I was bored and decided to make.</p>
  
  <p>Anyway, when I run it, it is SUPER slow, but when I hold CTRL + C, it goes a lot faster... And it works!</p>
  
  <p>Is there a way that I can make this script a lot faster?</p>