There's a short simple answer (and I'm guessing someone will jump in at any moment and give it), but the most useful answer I can give is this.
is your friend.
At the command prompt, enter
and all will be revealed.
For more output (and input!) flexibility, enter this at the command prompt:
man expect # if you're really adventurous
Hope this helps.