Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identity login propmt

Status
Not open for further replies.

max1x

Programmer
Jan 12, 2005
366
US
Very new to expect, could you please tell me how can I identify what login prompt is being requested and then send the login info accordingly?

Code:
expect "log1:"
send "response\r" 

or if

expect "log2:"
send "response2\r"

Thank you
 
I am finding a lot of example of -re and read in buffer information but nothing that has good examples. Could you point in me in a direction with good examples.

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top