I need to send commands to shell "MYSHELL>" after it has been initiated.
prcs = subprocess.Popen("MYSHELL; cmnd1; cmnd2;",shell=True,
subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
outputPrcs, err = prcs.communicate()
print outputPrcs
Problem only entering shell is implemented, Other commands (cmnd1; cmnd2;)aren't sent.
Result: MYSHELL>