Possible to make subprocess.Popen jobs run serially rather than in parallel?

Stephen Hansen me+list/python at ixokai.io
Tue Jun 15 15:03:33 EDT 2010


On 6/15/10 11:52 AM, Chris Seberino wrote:
> Possible to make subprocess.Popen jobs run serially rather than in
> parallel?
> 
> In other words, if a computer is low on memory and doesn't mind
> waiting.....can Popen be configured to submit to a queue and run jobs
> *ONE AT TIME*??
> 
> That might be useful and avoid crashes and disk swapping.

Just call "process.wait()" after you call process = subprocess.Popen(...)

-- 

   Stephen Hansen
   ... Also: Ixokai
   ... Mail: me+list/python (AT) ixokai (DOT) io
   ... Blog: http://meh.ixokai.io/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20100615/c03353f3/attachment-0001.sig>


More information about the Python-list mailing list