Login Script Problem 13 Years, 4 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
|
|
|
Logged
|
|
The administrator has disabled public write access.
|
|
Re:Login Script Problem 13 Years, 4 Months ago
|
|
Sorry the response back is "Timed out waiting for login prompt" not password prompt as I stated above
|
|
|
Logged
|
|
The administrator has disabled public write access.
|
|
Re:Login Script Problem 13 Years, 4 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: 1402
|
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.
|
|
|