Forum

Login Script Proble...
 
Notifications
Clear all

Login Script Problem

0 Posts
2 Users
0 Reactions
241 Views
(@Jaymistry)
New Member
Joined: 14 years ago
Posts: 2
Topic starter  

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


   
ReplyQuote
(@Jaymistry)
New Member
Joined: 14 years ago
Posts: 2
Topic starter  

Sorry the response back is "Timed out waiting for login prompt" not password prompt as I stated above


   
ReplyQuote
(@bpence)
Member Admin
Joined: 12 months ago
Posts: 1375
 

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


   
ReplyQuote
Share: