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: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.051 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'subject:help': 0.08; 'string': 0.09; '%s"': 0.09; 'parameter': 0.09; 'skip:/ 10': 0.09; 'cc:addr:python-list': 0.11; '"%s"': 0.16; '%r"': 0.16; '-tkc': 0.16; 'breakpoint': 0.16; 'called.': 0.16; 'repr()': 0.16; 'soap,': 0.16; 'to:addr:python.list': 0.16; 'to:addr:tim.thechases.com': 0.16; 'to:name:tim chase': 0.16; 'tuple;': 0.16; 'weird': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'subject:request': 0.19; 'written': 0.21; '(the': 0.22; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'directory.': 0.24; 'cheers,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'pass': 0.26; 'skip:_ 20': 0.27; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; 'chase': 0.31; 'file': 0.32; 'another': 0.32; '(most': 0.33; 'skip:_ 10': 0.34; 'could': 0.34; 'received:66': 0.35; 'but': 0.35; 'thanks': 0.36; 'should': 0.36; 'being': 0.38; 'rather': 0.38; 'recent': 0.39; 'does': 0.39; 'changed': 0.39; 'either': 0.39; 'how': 0.40; 'read': 0.60; 'dangerous': 0.60; 'tell': 0.60; 'received:unknown': 0.61; 'header:Message-Id:1': 0.63; 'happen': 0.63; 'charset:windows-1256': 0.64; 'more': 0.64; 'finally': 0.65; 'insight': 0.68; 'line,': 0.68; 'million': 0.74; 'received:204': 0.75; 'hand': 0.80; ':).': 0.84; 'citizens.': 0.84; "life's": 0.84; 'skip:/ 30': 0.84; 'way)': 0.84; 'boxes': 0.91; 'hands': 0.96; '2013': 0.98 X-Spam-Status: No, score=1.4 required=5.0 X-Spam-Level: + From: Gene Heskett To: Tim Chase Subject: Re: My first real request for help Date: Tue, 19 Nov 2013 12:19:12 -0500 References: <201311190431.15449.gheskett@wdtv.com> <201311191119.27188.gheskett@wdtv.com> <20131119103108.67abf14b@bigbox.christie.dr> In-Reply-To: <20131119103108.67abf14b@bigbox.christie.dr> MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1256" Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 61 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384881559 news.xs4all.nl 15923 [2001:888:2000:d::a6]:57497 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60011 On Tuesday 19 November 2013 12:12:49 Tim Chase did opine: > On 2013-11-19 11:19, Gene Heskett wrote: > >>> Traceback (most recent call last): > >>> File "/usr/bin/axis", line 3326, in > >>> > >>> _dynamic_tabs(inifile) > >>> > >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs > >>> > >>> child = Popen(cmd) > > > > You are suggesting I edit /usr/lib/python2.6/subprocess.py? > > I think Peter is suggesting that line 3182 in _dynamic_tabs should > either read (the better way) Now, this is a puzzle. _dynamic_tabs is not a file in /usr/lib/python2.6, nor does it "grep" in that directory. I need another clue, how much are they? :). > > child = Popen([cmd, args]) > > or (the not-so-good way) > > child = Popen(cmd, shell=True) > > If you drop a breakpoint right before that line, you should be able > to tell what it's trying to pass into Popen: > > print("DEBUGGING: %s" % repr(cmd)) > child = Popen(...) > > which should give you insight into what's being called. > > -tkc > > > PS: yes, I know about using "%r" in the format string rather than > "%s" plus a repr() call, but weird things happen in the event that > the parameter is a tuple; it could also have been written > > print("DEBUGGING: %r" % (cmd,)) > > but I find that a tad uglier. Thanks Tim. Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Once I finally figured out all of life's answers, they changed the questions. A pen in the hand of this president is far more dangerous than 200 million guns in the hands of law-abiding citizens.