I am trying to automate running of a program with Popen in Python (2.7 on windows XP).
The program (a FORTRAN compiled executable that takes in user input through command line) runs fine when called manually through command prompt. But starts hanging when I try the following through python :
p = Popen(["cmd","/C", "abcd.exe"], stdout=PIPE)
The CLI prompt from the exe pops up for couple of milliseconds and closes when I try to run it directly:
p = Popen("abcd.exe",stdout=PIPE)
Why this is happening?