Python: How to make interactive tools when our script fire and forget?
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?

for example...

       > Run script
       |
       |> loop this while script is running & Wait for 'CTRL+X' to exit the script
       |
       > Exit script

Sorry for grammar, Thanks
Python: How to make interactive tools when our script fire and forget?
===

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?

for example...

       > Run script
       |
       |> loop this while script is running & Wait for 'CTRL+X' to exit the script
       |
       > Exit script

Sorry for grammar, Thanks