Re: question about subprocess and shells

2009-12-05 Thread Nobody
On Fri, 04 Dec 2009 13:38:11 -0800, Ross Boylan wrote: > If one uses subprocess.Popen(args, ..., shell=True, ...) > > When args finishes execution, does the shell terminate? Either way > seems problematic. That depends upon what "args" is. On Unix, if args ends with a "&", the shell will termin

Re: question about subprocess and shells

2009-12-05 Thread Floris Bruynooghe
On Dec 4, 9:38 pm, Ross Boylan 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 co

Re: question about subprocess and shells

2009-12-04 Thread Lie Ryan
On 12/5/2009 8:38 AM, Ross Boylan wrote: If one uses subprocess.Popen(args, ..., shell=True, ...) When args finishes execution, does the shell terminate? Either way seems problematic. If it does not terminate, then it seems as if calls like wait and communicate would never return. It also see

question about subprocess and shells

2009-12-04 Thread Ross Boylan
If one uses subprocess.Popen(args, ..., shell=True, ...) When args finishes execution, does the shell terminate? Either way seems problematic. If it does not terminate, then it seems as if calls like wait and communicate would never return. It also seems the subprocess would never die, and that