Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How to get progress in python script.

Reply
Thread Tools

How to get progress in python script.

 
 
Rolando Caņer Roblejo
Guest
Posts: n/a
 
      09-28-2012
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.
 
Reply With Quote
 
 
 
 
John Gordon
Guest
Posts: n/a
 
      09-28-2012
In <mailman.1571.1348849432.27098.python-> =?ISO-8859-1?Q?Rolando_Ca=F1er_Roblejo?= <> 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
B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"

 
Reply With Quote
 
 
 
 
Colin J. Williams
Guest
Posts: n/a
 
      09-30-2012
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: How to get progress in python script. Jean-Michel Pichavant Python 0 09-28-2012 05:07 PM
client to upload big files via https and get progress info News123 Python 9 05-14-2010 07:23 AM
how to get rate of pop3 receiving progress? Leo Jay Python 1 07-14-2005 02:51 PM
Progress bar to show the progress of a task Charlie Zhang Java 3 08-16-2004 05:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57