run subprocesses in parallel

Santiago Caracol santiago.caracol at gmail.com
Mon Aug 2 14:12:37 CEST 2010


Hello,

I want to run several subprocesses. Like so:

p1 = Popen("mycmd1" + " myarg", shell=True)
p2 = Popen("mycmd2" + " myarg", shell=True)
...
pn = Popen("mycmdn" + " myarg", shell=True)

What would be the most elegant and secure way to run all n
subprocesses in parallel?

Santiago



More information about the Python-list mailing list