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

Release Notes: A bug in the new *LOG feature when used on the command line was fixed.

Release Notes: This release adds support for native logging to a file using *LOG/*NOLOG. It improves install.sh for NFS mounted home drives.

Release Notes: This release adds include file passing var=values with spaces, adds el_shell.elt, a helpful dev script for easy copy and pasting commands, and has more small bugfixes: "send" bug "bad flag -1", dyn var capture when "=" are present e.g. +$var=(\d) = STRING, single number expect, and a bug if a number was not on a line by itself.

  •  14 Aug 2012 22:17

Release Notes: This release fixes Ubuntu bug #994386, login sending an incorrect env setup command, while loop test blank (undefined) variables, infinite loop counters (it was still counting too many), and install.sh configuring as an unprivileged user (a fix for NFS-mounted home directories). An expect-lite blog has been created.

RSS Recent comments

29 Jan 2013 13:02 erwuuiosdf

Welcome to my Taobao shop !

Daily update:

Discover amazing stuff, collect the things you love, buy it all in one place.

novel style, varieties, low price and good quality, and the low sale price

==== ( www.fullmalls.com ) =====

==== ( www.fullmalls.com ) =====

New to Hong Kong : Winter Dress

Best quality, Best reputation , Best services

---**** NHL Jersey Woman $ 40 ---**** NFL Jersey $ 35

---**** NBA Jersey $ 34 ---**** MLB Jersey $ 35

---**** Jordan Six Ring_m $ 36 ---**** Air Yeezy_m $ 45

---**** T-Shirt_m $ 25 ---**** Jacket_m $ 36

---**** Hoody_m $ 50 ---**** Manicure Set $ 20

---**** handbag $ 37 ---**** ugg boot $ 43 ---****

give you the unexpected harvest

==== ( www.fullmalls.com ) =====

==== ( www.fullmalls.com ) =====

==== ( www.fullmalls.com ) =====

==== ( www.fullmalls.com ) =====

==== ( www.scnshop.com ) =====

Nike Name:AIR MORE UPTEMPO-1

www.fullmalls.com/view...

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

GNU xorriso

An ISO 9660 multi-session CD/DVD/BD filesystem manipulator.

Screenshot

Project Spotlight

GetDP

A general finite element solver.