<br>Hi all,<br>I am using Python 2.4. I am trying to run a C++ program on Red hat linux enterprise edition from Python by using various methods like > Os.system<br>><br>> Os.popen<br>><br>> Subprocess.popen<br>

><br>> Os.execvp<br>><br>> Os.spawnl<br>><br><br>In all of these methods the program kills python program also. So, let's say i am in python shell as follows<br><br>$> python<br>Python 2.4.4 (#1, Mar 28 2007, 15:30:40)
<br>[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> import os<br>>>>os.system('program_name')
<br>.......<br>.......<br>#program_output<br>.......<br>.......<br>No more foreground apps, exiting<br>Signal received. Terminating<br>Signal received. Terminating<br>.......<br>.......<br>Hangup<br>......<br>......<br>$>
<br><br>That is I exit the python shell as well. Please notice that Hangup written in between which is not a part of the program output (i.e. I don't get this 'Hangup'  when I run the program independently from the command prompt). The other things are part of the program output on stdout & stderr. Can anybody give some pointers on how to solve this. I am running out of ideas on how to run this program without exiting the python shell.
<br><br><br>
Thx<br>John.<br>