"Expect scripting language is used to feed input automatically
to an interactive program. It is easy to learn compared to other
scripting languages. Using expect script sysadmins and developers
can automate redundant tasks easily. It works by expecting specific
strings, and sending or responding strings accordingly.
"Following three expect commands are used when automating any
* send – to send the strings to the process
* expect – wait for the specific string from the process
* spawn – to start the command
"Make sure to install expect packages on your system, as it does
not get installed by default. Once installed, you'll see the expect
interpreter as "/usr/bin/expect". Generally, expect script files
has .exp as extensions."
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.