Exploring Expect delivers as the essential reference for any programmer who uses Expect for automation. I have written literally thousands of lines of Expect for automating testing, switch maintenance and data creation. This book describes all the different aspects and utilities provided by Expect. One of the more esoteric parts of expect is the keyword exp_internal which causes the expect interpreter to print, in great detail, how it attempts to match patterns to output from any spawned command. Also, the tracing capability is excellent. You can literally see each line as it executes.
Overall, this book is an excellent description of the expect language and it contains many examples. |