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


Groups > comp.lang.python > #77394

Re: subprocess module usage

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!lightspeed.eweka.nl!lightspeed.eweka.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <earl.lapus@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'argument': 0.05; 'subject:module': 0.09; 'worked.': 0.09; 'cc:addr:python-list': 0.11; 'chris,': 0.16; 'parameters,': 0.16; 'rather,': 0.16; 'splitting': 0.16; 'subject:usage': 0.16; 'wrote:': 0.18; 'shell': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'words': 0.29; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'sep': 0.31; 'thanks!': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'false': 0.36; 'changing': 0.37; "you're": 0.61; "you'll": 0.62; 'taking': 0.65; 'to:addr:gmail.com': 0.65; 'life': 0.66; 'fact,': 0.69
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 :cc:content-type; bh=VRDz43dhZHYoIIYqpeR2u5aGjmoicoF7wildMKBQAnY=; b=KWRb7+fCK6aA5O+/2BLU5tMa3WdEabBNG7hlwpI4kcSjExyWhH+p79SOVBjipGuGhe CdO5W5mXUV9HjNrEBvbSasWjE0C6T4duSogrcpL4/8+8phhsGjPeBUQLJe9V7PrPcVJz 8vaY9T5MBMVmBgiXapp7PL4eUED9JLyS+jBcEVx6Ah3tFtSNWKF8XnshIklVoApDx8nQ lxazR4m34MdWDrCUoYEbd4DRpTjax5yMa/q4lgYd9Rj3jn5qzXqNexYvD7DgWAs8fPc8 6ecC2rgmz7nfO1DWrP+bvS/9DdvijJS7RyXp0CjZ7tij5EdQ5YZrWs0zEqbpbarCQ3Qp uBFw==
MIME-Version 1.0
X-Received by 10.194.82.106 with SMTP id h10mr29655807wjy.37.1409549061092; Sun, 31 Aug 2014 22:24:21 -0700 (PDT)
In-Reply-To <CAPTjJmrq-azU3CvKi9FqxXNYALJu_cF-WtjTcB4YDnTectyCCA@mail.gmail.com>
References <CAPrJNb4_m-1sqwzUcqnHR6jTFo-Tp=a1hLgTvXrujXW5sAUkpg@mail.gmail.com> <CAPTjJmrq-azU3CvKi9FqxXNYALJu_cF-WtjTcB4YDnTectyCCA@mail.gmail.com>
Date Mon, 1 Sep 2014 13:24:21 +0800
Subject Re: subprocess module usage
From Earl Lapus <earl.lapus@gmail.com>
To Chris Angelico <rosuav@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <python-list@python.org>
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13683.1409550541.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1409550541 news.xs4all.nl 2891 [2001:888:2000:d::a6]:46724
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3587
X-Received-Body-CRC 3188267060
Xref csiph.com comp.lang.python:77394

Show key headers only | View raw


On Mon, Sep 1, 2014 at 11:55 AM, Chris Angelico <rosuav@gmail.com> wrote:
>
> But secondly, you're already splitting the argument (or rather, taking
> it from your own parameters, already split), so you don't want to go
> through the shell. In fact, going through the shell would only make
> your life harder. Change that to shell=False and you'll see everything
> work.
>

Changing shell value to False worked. I appreciate your help Chris, Thanks!

-- 
There are seven words in this sentence.

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


Thread

Re: subprocess module usage Earl Lapus <earl.lapus@gmail.com> - 2014-09-01 13:24 +0800

csiph-web