Download of pexpect-examples.tgz (pexpect-examples.tgz ( external link: SF.net): 11,818 bytes) will begin shortly. If not so, click link on the left.
Pexpect is a Python module for spawning child applications; controlling them; and responding to expected patterns in their output. Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. Pexpect is pure Python.
Note that Pexpect development has moved to Github: https://github.com/pexpect/pexpect