Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106462
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Request Help With Function |
| Date | 2016-04-04 13:54 -0600 |
| Message-ID | <mailman.31.1459799740.32530.python-list@python.org> (permalink) |
| References | <-JSdnXtfvv0oXp_KnZ2dnUU7-evNnZ2d@giganews.com> <CALwzidn6=DENyUGvri9af4qYiQRCU_2tCR27TzMUWw+zO_Yx9Q@mail.gmail.com> |
On Mon, Apr 4, 2016 at 1:42 PM, Wildman via Python-list
<python-list@python.org> wrote:
> commandlist = commandlist.split(",")
commandlist is a list.
> command = [target, commandlist]
> subprocess.Popen(command)
This is passing a list containing two elements: the first is a string,
and the second is a list of strings. You should just pass a list of
strings. Probably you wanted to do this:
command = [target] + commandlist
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Request Help With Function Wildman <best_lay@yahoo.com> - 2016-04-04 14:42 -0500
Re: Request Help With Function Ian Kelly <ian.g.kelly@gmail.com> - 2016-04-04 13:54 -0600
Re: Request Help With Function Wildman <best_lay@yahoo.com> - 2016-04-04 19:26 -0500
Re: Request Help With Function MRAB <python@mrabarnett.plus.com> - 2016-04-04 21:02 +0100
Re: Request Help With Function Wildman <best_lay@yahoo.com> - 2016-04-04 19:38 -0500
csiph-web