running a python script indefinitely (as a process, pretty much)
<p>i have tests that i ran which can take up to 15m at a time. during these 15m, a log file is periodically written to. however, most of the content is useless. </p>

<p>in response to this i have a python script that parses out the useless text and displays the relevant data. </p>

<p>what i'm trying to achieve is similar to what <code>tail -f log_file</code>, constantly updating the terminal with the newest additions to a file. i was thinking that if a python script ran as a process, it could parse the log file whenever the tests write to it, then the python script can go to sleep until interrupted again once the log file is written to.</p>

<p>any ideas how one can achieve this?</p>

<p>i already have a script that does the parsing, i just don't know how to make it do it continually and efficiently.</p>
