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


Groups > comp.lang.python > #28032

Re: popen4 - get exit status

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-1.ams.xsnews.nl!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tim@akwebsoft.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.049
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'problem:': 0.07; 'other,': 0.09; 'spawn': 0.09; 'aug': 0.13; 'ben,': 0.16; 'benjamin': 0.16; 'deprecated.': 0.16; 'forty': 0.16; 'subprocess': 0.16; 'mon,': 0.16; "shouldn't": 0.17; 'tim': 0.18; 'module': 0.19; 'cheers': 0.24; 'allows': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'older': 0.27; 'instead.': 0.27; 'replace': 0.27; 'url:mailman': 0.29; 'no,': 0.29; "i'm": 0.29; 'implement': 0.32; 'url:python': 0.32; 'johnson': 0.32; 'url:listinfo': 0.32; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'thanks': 0.34; 'url:org': 0.36; 'modules': 0.36; 'anything': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'subject:: ': 0.38; 'several': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'content-disposition:inline': 0.60; 'management': 0.65; 'stuck': 0.65; 'as:': 0.75; 'subject:get': 0.81; 'subject:status': 0.84; 'glad': 0.86; 'dennis': 0.91; 'intends': 0.91; 'processes,': 0.93
Date Tue, 28 Aug 2012 15:29:50 -0800
From Tim Johnson <tim@akwebsoft.com>
To python-list@python.org
Subject Re: popen4 - get exit status
Mail-Followup-To python-list@python.org
References <20120827223938.GZ35917@mail.akwebsoft.com> <CAMuTYXhvuuGjttJgxrcAusmxVPO0w+e6RyfWUpYAgFYUfhCowQ@mail.gmail.com> <20120827234359.GA35917@mail.akwebsoft.com> <76mo38heqavlv4huh4jvl1si57jb62tnnu@invalid.netcom.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <76mo38heqavlv4huh4jvl1si57jb62tnnu@invalid.netcom.com>
User-Agent Mutt/1.4.2.3i
Organization AkWebsoft
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.3910.1346196600.4697.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346196600 news.xs4all.nl 6963 [2001:888:2000:d::a6]:59913
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28032

Show key headers only | View raw


* Dennis Lee Bieber <wlfraed@ix.netcom.com> [120828 07:11]:
> On Mon, 27 Aug 2012 15:43:59 -0800, Tim Johnson <tim@akwebsoft.com>
> declaimed the following in gmane.comp.python.general:
> 
> > * Benjamin Kaplan <benjamin.kaplan@case.edu> [120827 15:20]:
> > > The popen* functions are deprecated. You should use the subprocess module
> > > instead.
> >   No, I'm stuck with py 2.4 on one of the servers I'm using and
> 
> 	Shouldn't be a problem:
> 
> -=-=-=-
> 17.1 subprocess -- Subprocess management 
> 
> New in version 2.4. 

  Thanks Dennis, I had misread the docs, you're right - after
  rereading them I has able to implement subprocess - glad to have
  it as I no longer have any servers to 'service' with anything
  older than 2.4. And Ben, please accept my apologies for seeming so
  dismissive.

  cheers
  tj

> The subprocess module allows you to spawn new processes, connect to
> their input/output/error pipes, and obtain their return codes. This
> module intends to replace several other, older modules and functions,
> such as: 
> -=-=-=-
> -- 
> 	Wulfraed                 Dennis Lee Bieber         AF6VN
>         wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Thread

Re: popen4 - get exit status Tim Johnson <tim@akwebsoft.com> - 2012-08-28 15:29 -0800

csiph-web