Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Expect.pm

  • expect

Expect.pm written by Austin Schutz and maintained by Roland Giersig

  • Provides a way to describe user behavior in a command line environment.

  • Can send information as if it was typed on the keyboard.

  • Can wait for some Expect-ed value and based on this value do something.

  • Originally an extension of Tcl.

  • Ported to Perl.

  • Can be used in environments such as:

  • Works on Linux/Unix/OSX.

  • Does NOT work on MS Windows.

  • Command line application like bc.

  • Telnet to another box and type in things.

  • Anything usually a person would do on the command line.