Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Windows': 0.02; 'example:': 0.03; "'',": 0.07; 'linux,': 0.07; 'assumed': 0.09; 'executable': 0.09; 'runs': 0.10; 'windows': 0.15; 'cmd': 0.16; 'received:74.208.4.195': 0.16; 'subject: \n ': 0.16; 'subject:stopped': 0.16; 'subject:when': 0.16; 'wrote:': 0.18; 'command': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'exists': 0.24; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; "i'm": 0.30; 'lines': 0.31; "skip:' 10": 0.31; 'description,': 0.31; 'run': 0.32; 'running': 0.33; 'more,': 0.35; 'but': 0.35; 'right?': 0.36; 'should': 0.36; 'error.': 0.37; 'two': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'email addr:gmail.com': 0.63; 'received:74.208': 0.68; 'saw': 0.77; "it'd": 0.84; 'played': 0.84 Date: Sat, 27 Apr 2013 22:02:01 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: python-list@python.org Subject: Re: "python.exe has stopped working" when os.execl() runs on Windows 7 References: <2e11de8b-f7e1-407f-a2fd-a08d5ce55d0b@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:mr4sLLy2FuohNmgC+wi5cTYWo//0w9yCdAQfKnW7GPg XWutZwrKvU6kt306lG7oC1hYBAjIhc8eOIBz0ondyDWLLJNXsm /OqJoEa8nlOJ12NILTu5hiHtJ3P9fIvHgGRawsX2mkbVDkOq4N AZRbgVlgEFff7ZwiWGe2OVAdPusSaqId7Hpz3mBhLdlyxaQfiy C5xnMuR2dAjbc9yhZ7iH4qchuXfZXjIO/F9i18LivnENqIT/e9 Z76MIm6L+efwoaFnR3+ovoMCW/fy/YVrVeIgXFEo179oTNaaLz fJxvMz4ORrbmdC+TTboaENYvRrOBrmlxUEwX92XrukevzQ0Jw= = 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367114541 news.xs4all.nl 15903 [2001:888:2000:d::a6]:40467 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44459 On 04/27/2013 09:05 PM, cormogram@gmail.com wrote: > Yes, just those two lines cause the error. 'filename.exe' exists and runs ok in the command prompt. Any other executable cause the problem, also '', for example: > > os.execl('','') > > If doesn't work on Windows it should give an error message, right? > I'm not running Windows any more, so it's hard to be conclusive. When I saw the description, I just assumed it'd be problematic under Windows. That's why I had never played with it. By the time I escaped to Linux, I was used to subprocess, so I still never played with execl. But why you should get that error on a console program run from the cmd prompt, I have no idea. -- DaveA