Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11095

subprocess.Popen and thread module

Subject subprocess.Popen and thread module
Date 2011-08-10 01:38 -0500
References <20110808013500.7c9e30ff44caee0f0bbf988a@johnohagan.com>
From "Danny Wong (dannwong)" <dannwong@cisco.com>
Newsgroups comp.lang.python
Message-ID <mailman.2086.1312958350.1164.python-list@python.org> (permalink)

Show all headers | View raw


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 question is:
Is subprocess.Popen thread safe?  If not, what other module should I use
to perform a system call? I also, want to log stdout and stderr to a
file. Thanks.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

subprocess.Popen and thread module "Danny Wong (dannwong)" <dannwong@cisco.com> - 2011-08-10 01:38 -0500
  Re: subprocess.Popen and thread module Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-08-10 12:09 +0200

csiph-web