The Expect computer scripting language derives its name from the primary function of the language, which is to expect user input from an interactive program and automate the response. Expect is primarily used in systems-administration type activities, where an administrator may need to periodically interact with another system in a formulaic manner. One common keystroke in systems administration is “Ctrl-C,” typically used to abort a process. Expect is designed to automate any typical key or combination of keys that a system administrator might enter. Writer Bio

Control C in Expect Script - 50