expect-lite is an quick and easy command line automation tool. Written in expect, it is designed to directly map an interactive terminal session into an automation script. expect-lite scripts use special character(s) at the beginning of each line to indicate the action. Basic expect-lite scripts can be created by simply cutting and pasting text from a terminal window into a script, and adding '>' '<' characters. No knowledge of expect is required. Expect-lite is targeted at the verification testing environment, and will produce a Pass/Fail result at the end of the script. However, its use is not limited to this environment. It includes a powerful debugger with breakpoints, step/skip, and the ability to copy/paste expect-lite lines right into a running script.
> % It would be good if wait-for-prompt
> % could be controlled by a prompt regex
> % that could be specified earlier on.
This feature (User Defined Prompt) is now part of the 3.1.5 release. Thanks for the feedback!
> It would be good if wait-for-prompt
> could be controlled by a prompt regex
> that could be specified earlier on.
> I'm working with some network switches
> which have weird prompts not terminated
> by a CR or NL
I agree. I have it working in the next development version I am working on. I would like to test this new feature, please send me examples.