Linux Today: Linux News On Internet Time.

More on LinuxToday

Automation With Expect, an Open Source Software Utility

May 25, 2010, 12:32 (0 Talkback[s])
(Other stories by Juliet Kemp)

WEBINAR: On-demand webcast

How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >

"I recently came acrossexpect (the expect package in Debian and Ubuntu): a powerful utility that can script interactive operations.

"If you're not familiar with TCL syntax, you can get autoexpect from This spawns a shell, and then records everything you do in that shell. Hit Ctrl-C when you're done, and then either run the generated expect script as-is, or edit it to tidy it up a bit. In particular, autoexpect records keystrokes one by one, whereas you can put them all in at once. It records the full prompt, where the $ at the end may suffice."

Complete Story

Related Stories: