interact (Expect)

term

networkingprogramming

Kept in this browser · My desk

The Expect command that hands a spawned program to the person at the keyboard, and gives it back to the script when a chosen key sequence or an idle timeout ends it.

Scripts use it to log in and then let a person work, or to hand over at the point of failure while debugging. Patterns inside it are what the person types to get the script back, usually with return in the body; its own timeout pattern measures idle time and has nothing to do with the timeout variable of expect. While it runs, Expect shows the session even if log_user was 0, on the reasoning that nobody wants to interact blindly.

Also known as: interact, expect interact

← Back to I Back to the glossary