expect; Scripts for Controlling Interactive Processes
Don Libes · 1991
: Contemporary shells provide minimal control (starting, stopping, etc) over programs, leaving interaction up to users. This means that you cannot run some programs non-interactively, such as passwd. Some programs can be run noninteractively but only with a loss of flexibility, such as fsck. This is where the toolbuilding philosophy of UNIX begins to break down. expect crosses this line, solving a number of long-standing problems in the UNIX environment. expect uses Tcl as a language core. In addition, expect can use any UNIX program whether or not it is interactive. The result is a classic example of a little language synergistically generating large power when combined with the rest of the UNIX workbench. Previous papers have described the implementation of expect and compared it to other tools. This paper concentrates on the language, primarily by presenting a variety of scripts. Several scripts demonstrate brand-new features of expect. Keywords: expect; interaction; POSIX; progra...
Cited by 24 works.