expect
Simple implementation of "expect" to help building unitary testing of interactive program
Description
You can match the question using a regular expression or a timeout.
See the Expect manual for more information: http://expect.nist.gov/