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: 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> <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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Mon, May 27, 2013 at 9:58 AM, Luca Cerone wrote: >> Could you provide the *actual* commands you're using, rather than the ge= neric "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 relev= ant 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 th= e 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