expect is a program that talks to other interactive programs according to a script. Following the script, expect knows what can be expected from a program and what the correct response should be.