Expect
From Just Solve the File Format Problem
Expect is a utility primarily used to automate terminal-based Unix software. It has an associated scripting language, implemented as a Tcl extension. It was originally developed by Don Libes.