   Advanced Programming in Expect: A Bulletproof Interface  By
David Fisher  Links to the scripts in this article are included
in the Linux Gazette. Off-site links to Expect manual pages are
indicated by a "(*)" after the link.   This article assumes the
reader has a thorough understanding of the basics of the Expect
scripting language and is looking for advanced solutions. For
more on Expect, see:
http://www.cotse.com/dlf/man/expect/index.html (*) In the design
of automated systems using the Expect programming language, one
of the more difficult hurdles many programmers encounter is
ensuring communication with ill-behaved connections and remote
terminals. The send_expect procedure detailed in this article
provides a means of ensuring communication with remote systems
and handles editing and rebroadcast of the command line. Where a
programmer would usually send a command line and then expect the
echo from the remote system, this procedure replaces those lines
of code and provides the most reliable interface I