in reply to CLI Interactivity - Timed Prompt
With Expect you can:
- spawn processes
- pass arguments to them
- ask the user for input
- search for certain output, and act on it
- set timeouts on actions and responses
The ability to check on any error messages that your processes may generate, makes for _FAR_ more robust scripts
Expect::Simple is a wrapper around the Expect module that simplifies the syntax somewhat ;-)
For further (heavy) reading:
"Exploring Expect" Don Libes 1st ed. 1995 O'Reilly & Associates 566 p.
|
|---|