Possible Duplicate:
I am unable to interact wih subprocess created by Popen
I am using python 2.5 in windows xp. In this i am using subprocess to run my shell, now how should i has to run gdb in shell using subprocess.
my code:
PID = subprocess.Popen('C:/STM/STxP70_Toolset_2010.2/bin/STxP70.bat',
shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
Now shell will open, next if i try to run gdb using communicate by
PID.communicate ("gdb")
"gdb" is not running in the shell.
What should i has to do for this.