Received: by 10.180.106.102 with SMTP id gt6mr871843wib.0.1348971128206; Sat, 29 Sep 2012 19:12:08 -0700 (PDT) Path: q10ni33782529wif.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news0.firedrake.org!news.xcski.com!ncf.ca!not-for-mail From: "Colin J. Williams" Newsgroups: comp.lang.python Subject: Re: How to get progress in python script. Date: Sat, 29 Sep 2012 22:10:29 -0400 Organization: National Capital Freenet, Ottawa, Ontario, Canada Lines: 14 Sender: fn...@dsl-205-233-125-17.b2b2c.ca Message-ID: References: NNTP-Posting-Host: dsl-205-233-125-17.b2b2c.ca Mime-Version: 1.0 X-Trace: theodyn.ncf.ca 1348971127 5085 205.233.125.17 (30 Sep 2012 02:12:07 GMT) X-Complaints-To: complaints@ncf.ca NNTP-Posting-Date: 30 Sep 2012 02:12:07 GMT User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit On 28/09/2012 12:26 PM, Rolando Caņer Roblejo wrote: > Hi all, > > Please, I need you suggest me a way to get statistics about a progress > of my python script. My python script could take a lot of time > processing a file, so I need a way that an external program check the > progress of the script. My first idea was that the python script write a > temp file showing the progress and the external program can check that > file, but I think might happen file read/write locking issues. > > Thanks. Would the Python profiler meet your need? Colin W.