title: Run process without waiting through ssh python
body: <p>I am using python <code>subProcess</code> to launch processes on a linux host. My code is as follows :</p>
  <pre><code>def launch_processes(user, host):
      num = 3
      for _ in range(num):
          x = subprocess.Popen(&quot;ssh {user}@{host} {cmd}&quot;.format(user=user, host=host, cmd='sleep 20 &amp;'),
                               shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
          print(&quot;Process &quot; + &quot; created .....&quot;)
  
  </code></pre>
  <p>However when I compute <code>x</code> my program waits 20 seconds before printing <code>Process created .....</code></p>
  <p>How can I modify my program so that my python does not wait the 20 seconds and that the <code>sleep 20 &amp;</code> is still launched as a background process on my host</p>