[Numpy-discussion] Simple way to launch python processes?
lou_boog2000 at yahoo.com
Wed Dec 7 17:46:49 EST 2011
From: Olivier Delalleau <shish at keba.be>
To: Discussion of Numerical Python <numpy-discussion at scipy.org>
Sent: Wednesday, December 7, 2011 3:43 PM
Subject: Re: [Numpy-discussion] Simple way to launch python processes?
Maybe try stackoverflow, since this isn't really a numpy question.
To run a command like "python myscript.py arg1 arg2" in a separate process, you can do:
p = subprocess.Popen("python myscript.py arg1 arg2".split())
You can launch many of these, and if you want to know if a process p is over, you can call p.poll().
I'm sure there are other (and better) options though.
-- Lou Pecora, my views are my own.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion