Projects / Expect-lite

Expect-lite

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.

Tags
Licenses
Operating Systems
Implementation
Translations

RSS Recent releases

Release Notes: Feature:Fuzzy Expect was added for approximate numbers. Speed when using EL_REMOTE_HOST=none (default) was improved. *TIMESTAMP now has millisecond resolution.

Release Notes: The EL_SHELL environment variable was added when using EL_CONNECTION_METHOD=none. *TIMESTAMP output now goes to the *LOG file. *LOGAPPEND now correctly appends to the default log file name. String, math, search/replace, and concat functions were added. *NOINCLUDE was added to prevent include files from being included.

Release Notes: Bugfixes and improvements. Improves foreach loops using code blocks by normalizing the list variable before executing, Improved login prompt detection, eliminating delay when using EL_CONNECTION_METHOD=none, Improved copy/paste into INTERACT/IDE from Windows and PuTTY.

Release Notes: This release enhanced code blocks with a foreach loop, added string math (search/replace, concat, remove), improved SSH login, and fixed an SSH options bug.

Release Notes: This release enhanced code blocks with "then" and "else" blocks, added an EL_INFINITE_LOOP environment variable that sets a user's default infinite loop protection, shortened expect-lite help, and enhanced the man page.

RSS Recent comments

09 Dec 2008 01:55 cvmiller

Re: wait-for-prompt

>

> % 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!

Craig...

25 Oct 2008 14:25 cvmiller

Re: wait-for-prompt

> 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.

Craig...

21 Oct 2008 08:35 samjam

wait-for-prompt
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

Screenshot

Project Spotlight

FastFlow

A multi-core programming framework.

Screenshot

Project Spotlight

juntaDados

A GNU/Linux multimedia distribution that is targeted at audio, video, and graphics producers.