Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:How': 0.09; 'python': 0.09; 'subject:python': 0.11; 'suggest': 0.11; 'file,': 0.15; 'received:209.85.216.53': 0.16; 'temp': 0.16; 'script.': 0.17; 'all,': 0.21; 'thanks.': 0.21; 'idea': 0.24; 'external': 0.24; 'script': 0.24; 'header:User-Agent:1': 0.26; 'issues.': 0.29; 'locking': 0.29; 'file': 0.32; 'could': 0.32; 'to:addr :python-list': 0.33; 'progress': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'message- id:@gmail.com': 0.36; 'received:209': 0.37; 'received:209.85.216': 0.37; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'first': 0.61; 'please,': 0.62; 'subject:get': 0.81; 'received:10.36': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=B5VytAJOgPfYFHummqgiOQtwgmyJmH0Zeowc6RvXkSk=; b=eFi2OcGCHyc9az3gza3fYUfH/417YjvlCfkfLutP3AGUB5C3jHzEWrne7qUbI+KIke OqpOkHk3w5myXkIxhkXJ8pUrAL9a0wQdDBJUJmY+CPIOP/9LDfkIN1NbTZPlphnqGaIa ipt8zpxa1vwqwwkP9gWOy7kDkvISeuE1zA4NvJ2zV77Pvvl8bGHRwjBYqrgIgsiblDWT qC2jj3gOSwNrJNN/KKshQ80xHXP3NWCfS6On/HQQLb6Nqi9fT0nPeOljXn46nl4D8DBf jCG7MqapLp789ngft3v3CJO3k7p6cIpNYQj6+1i1+HT+5fPrKJxBjxCHlPJ7L/p9W7me ke8g== Date: Fri, 28 Sep 2012 12:26:02 -0400 From: =?ISO-8859-1?Q?Rolando_Ca=F1er_Roblejo?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: python-list@python.org Subject: How to get progress in python script. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348849432 news.xs4all.nl 6934 [2001:888:2000:d::a6]:48548 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:30412 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.