Automation With Expect, an Open Source Software Utility
May 25, 2010, 12:32 (0 Talkback[s])
(Other stories by Juliet Kemp)
"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
Related Stories:
- Email PDFs From the Command Line With Open Source Software uuencode(May 18, 2010)
- Ultra-minimal Linux Desktops Roundup(May 11, 2010)
- One-Handed Workarounds -- The Programmers Guide to Typing With a Broken Thumb(May 10, 2010)
- Open Source Software Investigation -- Stty Settings, Backspace and Delete(May 04, 2010)
-
Setting Up Tunneling With a VirtualBox Guest Machine(Apr 27, 2010)
- Crontab Entries for Unix or Linux Servers Made Simple(Apr 20, 2010)
- LXDE, the New Lightweight Linux Desktop
(Apr 14, 2010)
- Shiny, Happy Linux OS Terminals With Bashish(Apr 12, 2010)
- Linux Server Fix: Backspacing on OSX Terminal Should Not Be Interpreted as Delete(Apr 06, 2010)