On Dec 4, 9:38 pm, Ross Boylan <r...@biostat.ucsf.edu> wrote: > If one uses subprocess.Popen(args, ..., shell=True, ...) > > When args finishes execution, does the shell terminate? Either way > seems problematic.
Essentially this is executing "/bin/sh args" so if you're unsure as to the behaviour just try it on your command line. Basically once the pipeline in "args" had finished the shell has nothing more to do and will return itself (and the return code for the shell depends on the return code of the pipeline executed which is normally the return code of the last process executed). Of course when I say "pipeline" it could also be a single command or a list or any valid shell. Regards Floris -- http://mail.python.org/mailman/listinfo/python-list