Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:not': 0.03; 'causing': 0.04; '(even': 0.05; 'output': 0.05; "subject:' ": 0.07; 'imported': 0.09; 'seemed': 0.09; 'wrapper': 0.09; '/dev/null': 0.16; 'argument:': 0.16; 'errno': 0.16; 'luck!': 0.16; 'portable': 0.16; 'received:65.55.116.7': 0.16; 'thanks,': 0.17; 'library': 0.18; 'to:name:python-list@python.org': 0.22; 'library,': 0.24; 'module,': 0.24; 'received:65.55.116': 0.24; 'space.': 0.24; 'cheers,': 0.24; 'mention': 0.26; 'header:In- Reply-To:1': 0.27; 'tried': 0.27; 'skip:- 40': 0.29; 'room': 0.29; 'unix': 0.29; 'forgot': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'easier': 0.31; 'usually': 0.31; 'url:python': 0.33; 'date:': 0.34; 'subject:with': 0.35; 'but': 0.35; 'disk': 0.36; 'otherwise.': 0.36; 'url:listinfo': 0.36; "didn't": 0.36; 'thanks': 0.36; "i'll": 0.36; 'possible': 0.36; 'url:org': 0.36; 'error.': 0.37; 'email addr:python.org': 0.37; 'to:addr:python- list': 0.38; 'subject:': 0.39; 'help,': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'url:mail': 0.40; 'even': 0.60; 'email addr:gmail.com': 0.63; 're:': 0.63; 'such': 0.63; 'more': 0.64; 'email name:python-list': 0.65; '50c': 0.84; 'lastly,': 0.84; 'piping': 0.84; 'subject:True': 0.91; 'try.': 0.91; 'url:latest': 0.91; '2013': 0.98 X-TMN: [yrs/ORnvBG3LDrLDI+8Dd0po9qemuOa4] X-Originating-Email: [carlosnepomuceno@outlook.com] From: Carlos Nepomuceno To: "python-list@python.org" Subject: RE: Piping processes works with 'shell = True' but not otherwise. Date: Mon, 27 May 2013 03:14:24 +0300 Importance: Normal 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> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 27 May 2013 00:14:24.0718 (UTC) FILETIME=[24E4FEE0:01CE5A6F] 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369613672 news.xs4all.nl 15888 [2001:888:2000:d::a6]:41627 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46146 pipes usually consumes disk storage at '/tmp'. Are you sure you have enough= room on that filesystem? Make sure no other processes are competing agains= t for that space. Just my 50c because I don't know what's causing Errno 0. = I don't even know what are the possible causes of such error. Good luck!=0A= =0A= ----------------------------------------=0A= > Date: Sun=2C 26 May 2013 16:58:57 -0700=0A= > Subject: Re: Piping processes works with 'shell =3D True' but not otherwi= se.=0A= > From: luca.cerone@gmail.com=0A= > To: python-list@python.org=0A= [...]=0A= > I tried to redirect the output to /dev/null using the Popen argument:=0A= > 'stdin =3D os.path.devnull' (having imported os of course)..=0A= > But this seemed to cause even more troubles...=0A= >=0A= >> Lastly=2C you may want to consider using a wrapper library such as http:= //plumbum.readthedocs.org/en/latest/ =2C which makes it easier to do pipeli= ning and other such "fancy" things with subprocesses=2C while still avoidin= g the many perils of the shell.=0A= >>=0A= >>=0A= > Thanks=2C I didn't know this library=2C I'll give it a try.=0A= > Though I forgot to mention that I was using the subprocess module=2C beca= use I want the code to be portable (even though for now if it works in Unix= platform is OK).=0A= >=0A= > Thanks a lot for your help=2C=0A= > Cheers=2C=0A= > Luca=0A= > --=0A= > http://mail.python.org/mailman/listinfo/python-list =