I have an interactive shell application on windows. I would like to write a python script that will send commands to that shell application and read back responses. However i want to do it interactively, i.e. i want the shell application to keep running as long the python script is.
I have tried
self.m_process subprocess.Popen(path_to_shell_app,shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE,universal_newlines=True)
and then using stdin and stdout to send and recieve data. it seems that the shell application is being opened but i can't communicate with it.
what am i doing wrong?