Running multiple commands simultaneously from python
<p>I want to run three commands at the same time from python. The command format is query.pl -args</p>

<p>Currently I am doing </p>

<pre><code>os.system("query.pl -results '10000' -serverName 'server1' &gt;&gt; log1.txt")

os.system("query.pl -results '10000' -serverName 'server2' &gt;&gt; log2.txt")

os.system("query.pl -results '10000' -serverName 'server3' &gt;&gt; log3.txt")
</code></pre>

<p>I want to query all three servers at the same time but in this case, each command executes only after the last one has finished. How can I make them simultaneous? I was thinking of using '&amp;' at the end but I want the next part of the code to be run only when all three command finish</p>
