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


Groups > comp.lang.python > #86212 > unrolled thread

Re: bufsize must be an integer in subprocess.Popen

Started byINADA Naoki <songofacandy@gmail.com>
First post2015-02-23 21:33 +0900
Last post2015-02-23 21:33 +0900
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#86212 — Re: bufsize must be an integer in subprocess.Popen

FromINADA Naoki <songofacandy@gmail.com>
Date2015-02-23 21:33 +0900
SubjectRe: bufsize must be an integer in subprocess.Popen
Message-ID<mailman.19067.1424694826.18130.python-list@python.org>
> 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>

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web