Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60009
| From | xDog Walker <thudfoo@gmail.com> |
|---|---|
| Subject | Re: My first real request for help |
| Date | 2013-11-19 09:07 -0800 |
| References | <201311190431.15449.gheskett@wdtv.com> <l6fdpb$2dk$1@ger.gmane.org> <201311191119.27188.gheskett@wdtv.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2924.1384880874.18130.python-list@python.org> (permalink) |
On Tuesday 2013 November 19 08:19, Gene Heskett wrote:
> You are suggesting I edit /usr/lib/python2.6/subprocess.py?
You should use either
subprocess.Popen(["ls", "-l"])
or
subprocess.Popen("ls -l")
The argument to the first is a two element list.
The argument to the second is a string.
You used "ls -l" as the process to run, thus
" OSError: [Errno 2] No such file or directory"
See the subprocess documentation.
--
Yonder nor sorghum stenches shut ladle gulls stopper torque wet
strainers.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: My first real request for help xDog Walker <thudfoo@gmail.com> - 2013-11-19 09:07 -0800
csiph-web