Xshell Forum

Telnet Script

Last post: Thursday, March 15, 2018 3:36 PM by Support, 1 reply

 
Wednesday, March 14, 2018 1:48 AM - Apu

Telnet Script

 
I need to know how to write telnet script in xshell. It should work like, when I call this script it will automatically login to my desired server.

Be informed I have to run this script after login to a fixed server.

Thanks.

Program Ver. : Xshell 5
Thursday, March 15, 2018 3:36 PM - Support

Re: Telnet Script

 
Try using a Login Script for your sessions.

This feature is rather simple and it consists of pairs of expect/send strings. The first expect string will be the last character or word after the login process finishes such as a command prompt string.

Here is a sample:

1. expect : -bash-4.1$, send : telnet your_desired_server
2. expect: login: , send: user_name
3. expect: Password:, send: the_password_of_the_user

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog