2
I'm trying to run a C program from within a python code.
cmd = 'gnome-terminal --command=./myprog'
subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
The code executes and the terminal closes.
I want to keep the terminal open after the execution is completed without having to add any extra code in the C file e.g. prompt the user for some input.
Is there a workaround for this?
http://askubuntu.com/questions/20330/how-to-run-a-script-without-closing-the-terminal – Sirex – 2015-04-26T23:08:52.473