Hi there
Just been setting up all my Telnet connections and using the Login script you provide (shown below) to login to them.
The majority of them are fine and login correctly, however a couple of them get to the login: prompt then the script comes back with "Timed out waiting for password prompt". Its as if there is no attempt to send the username and password in
Any idea's, thanks in advance
Jay
P.S. I'm a newbie, so please be gentle!!
Sub Main
DIM success
success = Terminal.WaitForTimeout ("login:" ,5000)
if success = TRUE then
Terminal.SendText("myusername"+vbNewLine)
success = Terminal.WaitForTimeout("Password:", 5000)
if success then
Terminal.SendText("mypassword"+vbNewLine)
else
MsgBox "Timed out waiting for password prompt"
end if
else
MsgBox "Timed out waiting for login prompt"
end if
End Sub
Sorry the response back is "Timed out waiting for login prompt" not password prompt as I stated above
Check the hosts in question to be sure that the login process is *exactly* the same..
For example.....
Do you have to hit the enter key to even get the 'login:' prompt?
Does the prompt contain any capital letters (such as 'Login' instead of 'login')
Brian