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


Groups > comp.lang.python > #29448

Re: subprocess call is not waiting.

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'suppose': 0.07; 'blocked': 0.09; 'pid,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sep': 0.09; 'thread,': 0.09; 'subject:not': 0.11; 'proc': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wait.': 0.16; 'this:': 0.23; "i've": 0.23; 'seems': 0.23; 'command': 0.24; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; '+0100,': 0.29; 'probably': 0.29; 'running': 0.32; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'massive': 0.35; 'problem,': 0.35; 'process,': 0.35; 'similar': 0.35; 'something': 0.35; 'there': 0.35; 'received:org': 0.36; 'really': 0.36; 'created': 0.36; 'but': 0.36; 'charset:us-ascii': 0.36; 'quite': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'easy': 0.60; 'andrea': 0.84; 'dennis': 0.91; 'received:108': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: subprocess call is not waiting.
Date Tue, 18 Sep 2012 15:20:59 -0400
Organization > Bestiaria Support Staff <
References <d49e1e71-afe2-4aab-8c67-3e2eea6533a6@googlegroups.com> <0b598d7f-7137-47cc-8eed-80ab450536c5@googlegroups.com> <mailman.734.1347681745.27098.python-list@python.org> <0405db16-6a4c-4189-a32c-2311d45eead3@googlegroups.com> <CAF_E5JabYOargjeDa9BdMZnUq3SmbXCO4Uue6NnSESUfHJspvA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-108-79-219-94.dsl.klmzmi.sbcglobal.net
X-Newsreader Forte Agent 3.3/32.846
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.889.1347996065.27098.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1347996065 news.xs4all.nl 6989 [2001:888:2000:d::a6]:56768
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:29448

Show key headers only | View raw


On Tue, 18 Sep 2012 14:54:41 +0100, andrea crotti
<andrea.crotti.0@gmail.com> declaimed the following in
gmane.comp.python.general:

> I have a similar problem, something which I've never quite understood
> about subprocess...
> Suppose I do this:
> 
> proc = subprocess.Popen(['ls', '-lR'], stdout=subprocess.PIPE,
> stderr=subprocess.PIPE)
> 
> now I created a process, which has a PID, but it's not running apparently...
> It only seems to run when I actually do the wait.
> 
> I don't want to make it waiting, so an easy solution is just to use a
> thread, but is there a way with subprocess?

	Unless you have a really massive result set from that "ls", that
command probably ran so fast that it is blocked waiting for someone to
read the PIPE.

-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

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


Thread

subprocess call is not waiting. paulstaten@gmail.com - 2012-09-13 08:17 -0700
  Re: subprocess call is not waiting. MRAB <python@mrabarnett.plus.com> - 2012-09-13 16:35 +0100
  Re: subprocess call is not waiting. woooee@gmail.com - 2012-09-13 10:24 -0700
    Re: subprocess call is not waiting. Hans Mulder <hansmu@xs4all.nl> - 2012-09-14 10:52 +0200
  Re: subprocess call is not waiting. Chris Rebert <clp2@rebertia.com> - 2012-09-13 22:27 -0700
  Re: subprocess call is not waiting. paulstaten@gmail.com - 2012-09-14 05:22 -0700
    Re: subprocess call is not waiting. Wanderer <wanderer@dialup4less.com> - 2012-09-14 10:38 -0700
    Re: subprocess call is not waiting. Chris Rebert <clp2@rebertia.com> - 2012-09-14 21:02 -0700
      Re: subprocess call is not waiting. paulstaten@gmail.com - 2012-09-15 05:59 -0700
        Re: subprocess call is not waiting. andrea crotti <andrea.crotti.0@gmail.com> - 2012-09-18 14:54 +0100
        Re: subprocess call is not waiting. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-18 15:20 -0400
        Re: subprocess call is not waiting. andrea crotti <andrea.crotti.0@gmail.com> - 2012-09-19 11:26 +0100
          Re: subprocess call is not waiting. Hans Mulder <hansmu@xs4all.nl> - 2012-09-19 15:23 +0200
            Re: subprocess call is not waiting. Gene Heskett <gheskett@wdtv.com> - 2012-09-19 11:57 -0400
            Re: subprocess call is not waiting. andrea crotti <andrea.crotti.0@gmail.com> - 2012-09-19 17:34 +0100
              Re: subprocess call is not waiting. Hans Mulder <hansmu@xs4all.nl> - 2012-09-19 19:31 +0200

csiph-web