Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60009 > unrolled thread
| Started by | xDog Walker <thudfoo@gmail.com> |
|---|---|
| First post | 2013-11-19 09:07 -0800 |
| Last post | 2013-11-19 09:07 -0800 |
| 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.
Re: My first real request for help xDog Walker <thudfoo@gmail.com> - 2013-11-19 09:07 -0800
| From | xDog Walker <thudfoo@gmail.com> |
|---|---|
| Date | 2013-11-19 09:07 -0800 |
| Subject | Re: My first real request for help |
| Message-ID | <mailman.2924.1384880874.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web