Telnet Script [1]
Telnet Script
Wednesday, March 14, 2018 1:48 AM - Apu
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
Be informed I have to run this script after login to a fixed server.
Thanks.
Program Ver. : Xshell 5
Re: Telnet Script
Thursday, March 15, 2018 3:36 PM - Support
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
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
Previous views: 632