I'm launching a program with subprocess
on Python.
In some cases the program may freeze. This is out of my control. The only thing I can do from the command line it is launched from is CtrlEsc which kills the program quickly.
Is there any way to emulate this with subprocess
? I am using subprocess.Popen(cmd, shell=True)
to launch the program.