Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86212
| References | <CAEMktPXksS9bVaf-BQMTe5KYOu3SxbiSCWdk78S1yP0zy9DG6Q@mail.gmail.com> <54EB1B7A.2000701@pistache.land> |
|---|---|
| From | INADA Naoki <songofacandy@gmail.com> |
| Date | 2015-02-23 21:33 +0900 |
| Subject | Re: bufsize must be an integer in subprocess.Popen |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.19067.1424694826.18130.python-list@python.org> (permalink) |
> 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
Re: bufsize must be an integer in subprocess.Popen INADA Naoki <songofacandy@gmail.com> - 2015-02-23 21:33 +0900
csiph-web