I have a python script that outputs to the console every 10 seconds or so. I want to run that script from my c++ code, and keep it running to continue getting updates until I close my app. If I use popen, I can get the output line by line, without having to wait for the script to "finish", but I cannot kill it when I close my app now.
Is there a way to read the output of a script as it is spit out, keeping the script running until I close my qt app?
Thanks!