run subprocesses in parallel

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


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?


More information about the Python-list mailing list