![]() |
How to get progress in python script.
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. |
Re: How to get progress in python script.
In <mailman.1571.1348849432.27098.python-list@python.org> =?ISO-8859-1?Q?Rolando_Ca=F1er_Roblejo?= <rolando.caner@gmail.com> writes:
> 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. The external program should open the progress file for read only, so I wouldn't think file locking would be an issue. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" |
Re: How to get progress in python script.
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. |
| All times are GMT. The time now is 04:40 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.