I\'ve got an interactive program called my_own_exe. First, it prints out alive, then you input S\\n and then it prints out alive
my_own_exe
alive
S\\n
communicate() reads data from stdout and stderr until end-of-file is reached. - It waits until your program quits.
communicate()