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


Groups > comp.lang.python > #60009

Re: My first real request for help

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news.astraweb.com!border2.a.newsrouter.astraweb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <thudfoo@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.064
X-Spam-Evidence '*H*': 0.89; '*S*': 0.02; 'argument': 0.05; 'string.': 0.05; 'element': 0.07; 'subject:help': 0.08; 'run,': 0.09; 'wrote:': 0.18; 'subject:request': 0.19; 'header:User- Agent:1': 0.23; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'thus': 0.29; 'file': 0.32; 'received:google.com': 0.35; 'should': 0.36; 'two': 0.37; 'list.': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'first': 0.61; 'content-disposition:inline': 0.62; 'header :Message-Id:1': 0.63; 'such': 0.63; 'directory"': 0.84; 'skip:/ 30': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; bh=tladaor/pUxI3Q59JUziuxuI90QJFzPIiIqkTQycU2g=; b=ca5sptzQ2frIMCZ1Yy/pKtgMc3d+MUqzAcEw0YkFjVt5KH4rfw08Wjiqb8F0JabuZG Jccb/pe6EYiLxgMS5ZwXQB3Tq8HLftN6dVbQ0+B9aezCWSud4pkIoeEIpq447aVIrYRk SEe+OykqWaaJnABvKnULu76tmD2DaFmE1csWiMWzeYBpJLjZ2mZarazsOJFvTS7hl/VZ puhNFb5jjUOp/GjV8j4ZykKaHAQuKp+I0UFWeFHKnjYDqV4GiybN5tktxntfNAzkGPVB 7QQaFPLG1o9l2BlX/qNoaPornKTKU0SxkglZW2tqLTY0LPtLDVuEzhK8LRRW1YZglGoY qnvw==
X-Received by 10.66.188.80 with SMTP id fy16mr2118018pac.168.1384880864836; Tue, 19 Nov 2013 09:07:44 -0800 (PST)
From xDog Walker <thudfoo@gmail.com>
To python-list@python.org
Subject Re: My first real request for help
Date Tue, 19 Nov 2013 09:07:31 -0800
User-Agent KMail/1.9.5
References <201311190431.15449.gheskett@wdtv.com> <l6fdpb$2dk$1@ger.gmane.org> <201311191119.27188.gheskett@wdtv.com>
In-Reply-To <201311191119.27188.gheskett@wdtv.com>
MIME-Version 1.0
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding 7bit
Content-Disposition inline
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2924.1384880874.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1384880876 news.xs4all.nl 15999 [2001:888:2000:d::a6]:50346
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60009

Show key headers only | View raw


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


Thread

Re: My first real request for help xDog Walker <thudfoo@gmail.com> - 2013-11-19 09:07 -0800

csiph-web