Knowledgebase
How are login, shell and password prompts determined?
Posted by Van Glass on 15 March 2007 10:58 PM
You must define the necessary login, password and shell prompts prior to establishing a connection. This will vary from server to server so you may wish to have a properties file that maps the hostname to the expected prompts if you are running a script against several hosts with varying prompts.

The default login prompt is "login:", the default password prompt is "Password:" and the default shell prompt is "$". These are customizable and may be set using the TelnetSession class LoginPrompt, PasswordPrompt and ShellPrompt properties.

Using the TelnetScript and TelnetTask classes you may define your own start and end prompts as needed.
(150 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako fusion