[Numpy-discussion] Simple way to launch python processes?
Lou Pecora
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.
-=- Olivier
Thank you.
-- Lou Pecora, my views are my own.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20111207/5f23efb8/attachment.html>
More information about the NumPy-Discussion
mailing list