I am trying to:
- execute a Linux script from Python
- wait for an interval
- kill the script (from Python) and get it's output (in Python)
I have played around with the subprocess library, however all functions which handle output are blocking (they wait for the process to terminate). However, in my particular case, the script is non-terminating.
Is there a way to run the script "in background", kill it after some time, and then obtain it's output?