GoneHiking
Technical User
Needing some help on an odd problem. A piece of a script I'm working on telnets to a router, then waits for the Username prompt, sends my username, waits for a Password prompt, then sends sends my password. The first part works fine (i.e. it waits for the first prompt, sends my username, then it just sits at the Password prompt.
One thing that might be causing issues is the Password prompt is returned immediately after the username is entered. I'm wondering if it doesn't have time to pickup the Password propmt.
Here's my code snippet:
ZocSend "telnet 10.1.96.13" "^M"
ZocWait "Username:"
ZocSend uname1 "^M"
ZocWait "Password:"
ZocSend pass1 "^M"
Username:
Password:
One thing that might be causing issues is the Password prompt is returned immediately after the username is entered. I'm wondering if it doesn't have time to pickup the Password propmt.
Here's my code snippet:
ZocSend "telnet 10.1.96.13" "^M"
ZocWait "Username:"
ZocSend uname1 "^M"
ZocWait "Password:"
ZocSend pass1 "^M"
Username:
Password: