Automation With Expect, an Open Source Software Utility | Linux Today

Automation With Expect, an Open Source Software Utility

Written By
JK
Juliet Kemp
May 25, 2010

“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 Wi-Fizzle.com. 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

JK

Juliet Kemp

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.