Dear all, In a shell script, I can run a command which need interactive input like this, #!/bin/sh A_Command<<-EOF a b c EOF But, how can I do this with python ? Thanks in advance.