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


Groups > comp.lang.python > #5855

Re: how to get PID from subprocess library

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From TheSaint <nobody@nowhere.net.no>
Newsgroups comp.lang.python
Subject Re: how to get PID from subprocess library
Followup-To comp.lang.python
Date Fri, 20 May 2011 23:19:38 +0800
Organization Aioe.org NNTP Server
Lines 11
Message-ID <ir60qf$gra$1@speranza.aioe.org> (permalink)
References <f1d62b97-999b-472a-991c-6b6015b60d11@glegroupsg2000goo.googlegroups.com>
NNTP-Posting-Host gNpTP4Q3c3MevmRWnjW6Ug.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Complaints-To abuse@aioe.org
User-Agent KNode/4.4.11
X-Notice Filtered by postfilter v. 0.8.2
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5855

Followups directed to: comp.lang.python

Show key headers only | View raw


Miki Tebeka wrote:

> The best module for doing such things is subprocess. And the Popen object
> has a pid attribute

I knew that, it's my fault that I'm not good to manage with popen. I found 
simplier to use subprocess.getstatusoutput. Maybe this function doesn't 
return the child pid, so I should adopt to work with Popen :(

-- 
goto /dev/null

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


Thread

Re: how to get PID from subprocess library Miki Tebeka <miki.tebeka@gmail.com> - 2011-05-19 09:05 -0700
  Re: how to get PID from subprocess library TheSaint <nobody@nowhere.net.no> - 2011-05-20 23:19 +0800

csiph-web