Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46146
| 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 | <carlosnepomuceno@outlook.com> |
| 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 <carlosnepomuceno@outlook.com> |
| To | "python-list@python.org" <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 | <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 <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.2222.1369613672.3114.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
pipes usually consumes disk storage at '/tmp'. Are you sure you have enough room on that filesystem? Make sure no other processes are competing against 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! ---------------------------------------- > Date: Sun, 26 May 2013 16:58:57 -0700 > Subject: Re: Piping processes works with 'shell = True' but not otherwise. > From: luca.cerone@gmail.com > To: python-list@python.org [...] > I tried to redirect the output to /dev/null using the Popen argument: > 'stdin = os.path.devnull' (having imported os of course).. > But this seemed to cause even more troubles... > >> Lastly, you may want to consider using a wrapper library such as http://plumbum.readthedocs.org/en/latest/ , which makes it easier to do pipelining and other such "fancy" things with subprocesses, while still avoiding the many perils of the shell. >> >> > Thanks, I didn't know this library, I'll give it a try. > Though I forgot to mention that I was using the subprocess module, because I want the code to be portable (even though for now if it works in Unix platform is OK). > > Thanks a lot for your help, > Cheers, > Luca > -- > http://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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