When I execute a python script using subprocess.Popen(script, shell=True)
in another python script, is it possible to alert python when the script completes running before executing other functions?
On a side note, can I get real-time output of the executed python script?
I can only get output from it doing command>output.txt
but that's only after the whole process ends. stdout
does not grep any ouput.