Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Expect is a Unix
automation and testing tool, written by Don Libes as an extension to the
Tcl scripting language, for interactive applications such as telnet,
ftp, passwd, fsck, rlogin, tip, ssh, and others. It uses Unix pseudo
terminals to wrap up subprocesses transparently, allowing the automation
of arbitrary applications that are accessed over a terminal. With Tk,
interactive applications can be wrapped in X11 GUIs. Expect has regular
expression pattern matching and general program capabilities, allowing
simple scripts to intelligently control programs such as telnet, ftp,
and ssh, all of which lack a programming language, macros, or any other
program mechanism. The result is that Expect scripts provide old tools
with significant new power and flexibility.