December 1994
Intermediate to advanced
606 pages
16h 7m
English
Expect script names need not end with .exp although this can serve as an easy to way to distinguish Expect scripts from other files. Modern versions of the UNIX file command can also report that a file is an Expect script. They do this by looking at the #! in the first line. Thus, it is a good idea to use this line even if you always invoke Expect explicitly when using the script.
% file echo.exp
echo.exp: executable /usr/local/bin/expect scriptRead now
Unlock full access