Hi, I am trying to automate a cli application that has multiline output. I want to be able to grep for this multi line output as single string using Expect module and send some keys as input. The cli would be something like bash-3.00# /opt/myapp/bin/app register 1) someservername(1) 2) someoptionalserver(2) Select destination server or enter full URL for alternate server [somedefaultserver(3)]: How can I do this using Expect? Thanks in advance..Thread Next