CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Regular Expressions:
Need help in Expect Module


New User

Jan 17, 2011, 10:16 PM

Post #1 of 1 (4540 views)
Need help in Expect Module Can't Post

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..


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives