Re: subprocess.Popen and thread module

2011-08-11 Thread Nobody
Danny Wong (dannwong) wrote: >        cmd_output = subprocess.Popen(['scm', 'load', '--force', > '-r', nickname, '-d', directory, project], stdout=subprocess.PIPE, > stderr=subprocess.PIPE) >       status = cmd_output.wait() If you redirect stdout and/or stderr to a pipe, you must wait for EOF b

Re: subprocess.Popen and thread module

2011-08-10 Thread Thomas Rachel
Am 10.08.2011 08:38 schrieb Danny Wong (dannwong): Hi All, I'm trying to execute some external commands from multiple database. I'm using threads and subprocess.Popen ( from docs, all the popen* functions are deprecated and I was told to use subprocess.Popen) to execute the external commands

Re: subprocess.Popen and thread module

2011-08-10 Thread Chris Rebert
> From: Chris Rebert >> On Tue, Aug 9, 2011 at 11:38 PM, Danny Wong (dannwong) >> wrote: >>> Hi All, >>>   I'm trying to execute some external commands from multiple database. >>> I'm using threads and subprocess.Popen ( from docs, all the popen* >>> functions are deprecated and I was told to use

RE: subprocess.Popen and thread module

2011-08-10 Thread Danny Wong (dannwong)
Original Message- From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert Sent: Tuesday, August 09, 2011 11:53 PM To: Danny Wong (dannwong) Cc: python-list@python.org Subject: Re: subprocess.Popen and thread module > On Tue, Aug 9, 2011 at 11:38 PM, Danny Wong (dannwong) >

Re: subprocess.Popen and thread module

2011-08-10 Thread Chris Rebert
> On Tue, Aug 9, 2011 at 11:38 PM, Danny Wong (dannwong) > wrote: >> Hi All, >>   I'm trying to execute some external commands from multiple database. >> I'm using threads and subprocess.Popen ( from docs, all the popen* >> functions are deprecated and I was told to use subprocess.Popen) to >> exe

RE: subprocess.Popen and thread module

2011-08-09 Thread Danny Wong (dannwong)
"In load status is: %s" % status + "\n" except: print "Error Executing %s" % command + "\n" -Original Message- From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert Sent: Tuesday, August 09, 2011 11:47 PM To: Danny

Re: subprocess.Popen and thread module

2011-08-09 Thread Chris Rebert
On Tue, Aug 9, 2011 at 11:38 PM, Danny Wong (dannwong) wrote: > Hi All, >   I'm trying to execute some external commands from multiple database. > I'm using threads and subprocess.Popen ( from docs, all the popen* > functions are deprecated and I was told to use subprocess.Popen) to > execute the

subprocess.Popen and thread module

2011-08-09 Thread Danny Wong (dannwong)
Hi All, I'm trying to execute some external commands from multiple database. I'm using threads and subprocess.Popen ( from docs, all the popen* functions are deprecated and I was told to use subprocess.Popen) to execute the external commands in parallel, but the commands seems to hang. My quest