Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'output': 0.05; 'executed': 0.09; 'subject:script': 0.09; 'cc:addr:python- list': 0.11; 'cc:name:python list': 0.16; 'executed.': 0.16; 'subject:python': 0.16; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'program,': 0.31; 'file': 0.32; 'another': 0.32; 'text': 0.33; 'open': 0.33; 'subject:the': 0.34; 'could': 0.34; 'display': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'similar': 0.36; 'being': 0.38; 'ago,': 0.61; 'took': 0.61; 'saw': 0.77 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8P/6I8rzGPKupyIF82xGlNRZYVds6pbyCV41++YI1NE=; b=oFDWst+zr2Wfq/RPA3X5Ev/VO1NxqxpgAqf2Ze8E2oj7BLoM1xEbOSoexAtxpXYMnZ 8huEBZvBpCkjteGZ/vwKr3KXVKMzoJeUFNeTAkLL/PH5g4R8vuSdRKngoU7fPxAvzOmN R8Osac6eJJA0O4ofxIoJLd6s9/viPQITdX/V6e4w1pejn4Ko35z9zF4cp+d4c+iRbMcI Gm291136+YWI5IlJQXhkFW48UTx6hwxK7RAytrCXGyPSGsQTMahKBTE6T/YUSv67gKx5 oOFI/U+V+pj9IK8dLVg0P7jMEIwHQimhr4RQ/wXk2DuSZuffUGQOHzbegxy4K/BU9eQu KDrQ== MIME-Version: 1.0 X-Received: by 10.180.77.49 with SMTP id p17mr26157913wiw.30.1386803449180; Wed, 11 Dec 2013 15:10:49 -0800 (PST) In-Reply-To: References: Date: Wed, 11 Dec 2013 15:10:49 -0800 Subject: Re: Tracking the status of python script execution From: Dan Stromberg To: Shyam Parimal Katti Content-Type: multipart/alternative; boundary=f46d04389213f6362d04ed4a564f Cc: Python List 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386803451 news.xs4all.nl 2912 [2001:888:2000:d::a6]:35491 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61625 --f46d04389213f6362d04ed4a564f Content-Type: text/plain; charset=ISO-8859-1 Long ago, I saw a C program that took another C program as input. It would output a copy of the original C program, interspersed with fprintf's that would display the text of the line current being executed. You might write something similar for Python, perhaps outputting the line being executed and/or the line number. You could have it open a file in /tmp or something. --f46d04389213f6362d04ed4a564f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Long ago, I saw a C program= that took another C program as input.=A0 It would output a copy of the ori= ginal C program, interspersed with fprintf's that would display the tex= t of the line current being executed.

You might write something similar for Python, perhaps outputting the li= ne being executed and/or the line number.=A0 You could have it open a file = in /tmp or something.

--f46d04389213f6362d04ed4a564f--