Tracking the status of python script execution

Shyam Parimal Katti spk265 at nyu.edu
Wed Dec 11 14:26:15 EST 2013


Hello All,

I am looking for a library that can help me trace the status of a live
python script execution. i.e if I have a python script `x.py` with 200
lines, when I execute the script with `python x.py`, is there a way to
trace the status of this execution in terms of number of lines executed so
far?

Background: We have a Web page with "Run" button that executes the program
`x.py` when a user clicks it. We were looking of a way to keep the user
informed about the status of run by using: (no. of lines executed/total
lines) *100. Since the script `x.py` is running multiple sql queries, it
usually won't be the case that the script would complete within few seconds
of its execution.


Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20131211/71ade64e/attachment.html>


More information about the Python-list mailing list