Pexpect Pexpect current The most current version and up-to-date information on Pexpect may be found on the GitHub page at https://github.com/pexpect/pexpect.
Note that many interactive programs (e.g. vi) don’t work well with pipes substituted for standard input and output. You will have to use pseudo ttys (“ptys”) instead of pipes. Or you can use a Python interface to Don Libes’ “expect” library.