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


Groups > comp.lang.python > #86212

Re: bufsize must be an integer in subprocess.Popen

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <songofacandy@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'argument': 0.05; 'skip:` 10': 0.07; 'subject:skip:s 10': 0.07; 'string': 0.09; 'parameter': 0.09; 'cc:addr:python-list': 0.11; 'argument.': 0.16; 'skip:[ 30': 0.16; 'unpacked': 0.16; 'command': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'received:google.com': 0.35; 'hi,': 0.36; 'should': 0.36; 'list': 0.37; 'first': 0.61
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=3AhAMGhEYWdgKfXL9vvhNP1MGOOu9su+IRl8DuW6Seg=; b=wEVS8X3epe/+pL2By0sYmF1olbProctYbEajTJgGcPvIz89aqD3V53aS5GRj59j/ej tNbbi/ddTwluYVD0l1J7JG3yNPlpwQ5X13TpBkyRjV2vypmZpTFrkrXaYlQQ6ubdFtAw SbuD8tlNtrdEnG/Blwfqz+geQ5BCgfgaW1WbNv32eKbHKiKQHt5m1joYmAQHG1ss0FEd 0BgSLhxeeaovCTf6Q2KgRATI0j+Pj8Ls5u/daVHdFgr3VT66QrATwdCZlT1NrySDCXuj KlVUBV4KUjHlpeX5Sp4z1EV1REeZCUNSKw5zs2n5BQzEdyt4zZDfx0fzGqLRsFZ4TvxA wvfA==
X-Received by 10.140.144.147 with SMTP id 141mr23855823qhq.91.1424694819272; Mon, 23 Feb 2015 04:33:39 -0800 (PST)
MIME-Version 1.0
In-Reply-To <54EB1B7A.2000701@pistache.land>
References <CAEMktPXksS9bVaf-BQMTe5KYOu3SxbiSCWdk78S1yP0zy9DG6Q@mail.gmail.com> <54EB1B7A.2000701@pistache.land>
From INADA Naoki <songofacandy@gmail.com>
Date Mon, 23 Feb 2015 21:33:19 +0900
Subject Re: bufsize must be an integer in subprocess.Popen
To Shgck <shgck@pistache.land>
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.19067.1424694826.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424694826 news.xs4all.nl 2886 [2001:888:2000:d::a6]:58625
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86212

Show key headers only | View raw


> Hi, the parameter list should be a list of strings, not several unpacked
> strings :
>
>     command = ["/root/Desktop/abc.py","64","abc"]
>     proc1 = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
> stderr=subprocess.PIPE)
>

The first argument is list of string only when `shell=False` (default).
When `shell=True`, you should one string as the argument.

-- 
INADA Naoki  <songofacandy@gmail.com>

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


Thread

Re: bufsize must be an integer in subprocess.Popen INADA Naoki <songofacandy@gmail.com> - 2015-02-23 21:33 +0900

csiph-web