Python: How to make interactive tools when our script fire and forget?
<p>I have a software in which support Python for scripting, but just fire and forget scripts, is there anyway to track memory (or something like that) to make more interactive tools?, OR is it possible to track memory by some external tools, something like key-logger but more advanced?</p>

<p>for example...</p>

<pre><code>   &gt; Run script
   |
   |&gt; loop this while script is running &amp; Wait for 'CTRL+X' to exit the loop
   |
   &gt; Exit script
</code></pre>
