VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Login Script Problem (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Login Script Problem
#2511
Login Script Problem 13 Years, 8 Months ago  
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
Jaymistry (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2512
Re:Login Script Problem 13 Years, 8 Months ago  
Sorry the response back is "Timed out waiting for login prompt" not password prompt as I stated above
Jaymistry (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2513
Re:Login Script Problem 13 Years, 8 Months ago  
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
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top