LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2011, 04:11 AM   #1
arvind.rjh
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: 0
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.
 
Old 05-06-2011, 05:27 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
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.)

Last edited by xeleema; 05-06-2011 at 05:31 AM. Reason: Maybe even followed by planting a Microsoft Technet book in your luggage and call the H.R. Dept.
 
Old 05-07-2011, 07:10 AM   #3
arvind.rjh
LQ Newbie
 
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Smile 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.

Last edited by arvind.rjh; 05-07-2011 at 07:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /usr/bin/expect : Script to check server load using both expect and bash Soji Antony Programming 1 07-28-2010 12:27 AM
Need info on ovzkernel-PAE 2.6.18-53 package for RHEL 5 2.6.18-53 server. sombre1 Linux - Server 1 05-25-2010 03:42 AM
Telnet using expect mikejreading Programming 3 05-13-2010 07:11 PM
Expect Utility and Telnet metallica1973 Programming 1 12-28-2007 02:58 PM
telnet server not reliable for expect script powah Linux - Software 0 11-16-2005 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration