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.)