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


Groups > comp.lang.python > #46181

Re: Piping processes works with 'shell = True' but not otherwise.

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.116
X-Spam-Level *
X-Spam-Evidence '*H*': 0.77; '*S*': 0.00; 'subject:not': 0.03; "subject:' ": 0.07; 'chris,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'using,': 0.16; 'wrote:': 0.18; 'help.': 0.21; 'command': 0.22; 'mon,': 0.24; '(see': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'publicly': 0.31; 'url:python': 0.33; 'actual': 0.34; 'could': 0.34; 'problem': 0.35; 'subject:with': 0.35; "can't": 0.35; 'common': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'thanks': 0.36; 'url:org': 0.36; 'wrong': 0.37; 'sometimes': 0.38; 'system,': 0.38; 'generic': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'skip:u 10': 0.60; 'commands': 0.60; 'privacy': 0.61; "you're": 0.61; 'first': 0.61; 'provide': 0.64; 'given.': 0.84; 'replicate': 0.84; 'subject:True': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=KjnjKKGaYJPLdS5Te4Qb/cwICx9VIIkIDPCQiaEMqNo=; b=LL+74Pr7Ox2pDS1Lwkbk2Vhgb2zt3HCVIqrZlfnZq4jRFIXVcDiglSfieywWmLjhaK zz9oHEh9qkj7EpuXT4XPuM43OC51ARrJ1nZXULOp3yTbN4LTr37Tu4sLe/MvuLN51wyg NRXcZQKNrAOajNI0kPYTeVQTxclDYJMmRBXdsKL32pEPv/QwNxuurpad6gcMGf55QaDL 4igGHIZtzmPsTwvSlkHGmvom0aecw8SvO+osgRaoxZQ2bvfjAgPz+2zf7zur7Ko7desm LRNNp1B9Xkerz6ksFyh5nurv6seGAWpNwPB7ZoIDAZSEWqjW02XE9vTnNOQSSuWqqNc9 jsVw==
MIME-Version 1.0
X-Received by 10.220.167.69 with SMTP id p5mr14525516vcy.57.1369643312868; Mon, 27 May 2013 01:28:32 -0700 (PDT)
In-Reply-To <08aa32b7-0fb7-4665-83fa-5cc7ec36f898@googlegroups.com>
References <062f557e-8e1a-4efb-9178-7d685b47a834@googlegroups.com> <mailman.2202.1369602328.3114.python-list@python.org> <08aa32b7-0fb7-4665-83fa-5cc7ec36f898@googlegroups.com>
Date Mon, 27 May 2013 18:28:32 +1000
Subject Re: Piping processes works with 'shell = True' but not otherwise.
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
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.2244.1369643321.3114.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369643321 news.xs4all.nl 15989 [2001:888:2000:d::a6]:42895
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:46181

Show key headers only | View raw


On Mon, May 27, 2013 at 9:58 AM, Luca Cerone <luca.cerone@gmail.com> wrote:
>> Could you provide the *actual* commands you're using, rather than the generic "program1" and "program2" placeholders? It's *very* common for people to get the tokenization of a command line wrong (see the Note box in http://docs.python.org/2/library/subprocess.html#subprocess.Popen for some relevant advice).
>>
> Hi Chris, first of all thanks for the help. Unfortunately I can't provide the actual commands because are tools that are not publicly available.
> I think I get the tokenization right, though.. the problem is not that the programs don't run.. it is just that sometimes I get that error..

Will it violate privacy / NDA to post the command line? Even if we
can't actually replicate your system, we may be able to see something
from the commands given.

ChrisA

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


Thread

Piping processes works with 'shell = True' but not otherwise. Luca Cerone <luca.cerone@gmail.com> - 2013-05-24 07:04 -0700
  Re: Piping processes works with 'shell = True' but not otherwise. Luca Cerone <luca.cerone@gmail.com> - 2013-05-26 03:31 -0700
  Re: Piping processes works with 'shell = True' but not otherwise. Chris Rebert <clp2@rebertia.com> - 2013-05-26 14:05 -0700
    Re: Piping processes works with 'shell = True' but not otherwise. Luca Cerone <luca.cerone@gmail.com> - 2013-05-26 16:58 -0700
      RE: Piping processes works with 'shell = True' but not otherwise. Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-27 03:14 +0300
        Re: Piping processes works with 'shell = True' but not otherwise. Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2013-05-29 19:39 +0200
          RE: Piping processes works with 'shell = True' but not otherwise. Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-29 22:31 +0300
          Re: Piping processes works with 'shell = True' but not otherwise. Cameron Simpson <cs@zip.com.au> - 2013-05-30 08:18 +1000
      Re: Piping processes works with 'shell = True' but not otherwise. Chris Angelico <rosuav@gmail.com> - 2013-05-27 18:28 +1000
        Re: Piping processes works with 'shell = True' but not otherwise. Luca Cerone <luca.cerone@gmail.com> - 2013-05-27 04:33 -0700
      Re: Piping processes works with 'shell = True' but not otherwise. Chris Rebert <clp2@rebertia.com> - 2013-05-29 10:17 -0700
        Re: Piping processes works with 'shell = True' but not otherwise. Luca Cerone <luca.cerone@gmail.com> - 2013-05-31 02:28 -0700
          Re: Piping processes works with 'shell = True' but not otherwise. Peter Otten <__peter__@web.de> - 2013-05-31 11:52 +0200

csiph-web