LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need EXPECT package for RHEL 5 to TELNET a server. (https://www.linuxquestions.org/questions/linux-software-2/need-expect-package-for-rhel-5-to-telnet-a-server-879140/)

arvind.rjh 05-06-2011 04:11 AM

Need EXPECT package for RHEL 5 to TELNET a server.
 
Please can anyone guide me to find and install EXPECT package in RHEL5 to TELNET servers.

xeleema 05-06-2011 05:27 AM

Greetings!

For starters "EXPECT" doesn't let you "TELNET" into SERVERS. It's actually a SCRIPTing Language.

In order to setup TELNET, you would have to install the RPMs for TELNET;

To find out if they're installed, do an "rpm -qa | grep telnet" and look for the following;
Code:

telnet-#.##-##.el5
telnet-server-#.##-##.el5

For example, I show the below RPMs are already installed.
Code:

telnet-0.17-39.el5
telnet-server-0.17-39.el5

Now if you're trying to learn how to use expect to telnet into a server, well I would suggest reading the man page for remsh and rsh.

(Well, actually, I'd thrash you soundly for not using ssh, then I'd ask you if I had "google" written across my forehead, followed by removing your root privledges on my servers so you can't make a bigger mess of the network.)

arvind.rjh 05-07-2011 07:10 AM

Thanks Xeleema
 
Thanks Xeleema,

I checked as directed by you and got a single line "telnet-0.17-39.el5".I will manage to use EXPECT in programming language.Please help me to find RPM on net.I want to make use of EXPECT to login the servers on LAN.


All times are GMT -5. The time now is 07:49 AM.