[NTLUG:Discuss] Telnet question

jm jm5379 at sbcglobal.net
Thu Aug 1 18:43:31 CDT 2002


I'm trying to write an Expect script (my first, as I read Exploring
Expect) to login to a server; I'm currently having a problem when I
actually send login data to the server, either via Expect or
interactively...

My .telnetrc has the following options defined for this specific system
connection:

system.name.com
	unset echo
	mode character

When i type in my userid and hit <enter>, the cursor goes down to the
next line, echos the userid again and simply waits; pressing <enter>
drops the cursor down by 2 lines each time.

However...

If I enter ^] to get back to the telnet prompt, simply hit <enter>
enough times to get back into the server, <enter> begins working exactly
as it should.

What is the ^] sequence changing in the <enter> functionality (and why),
or what option(s) do I need to add to .telnetrc to modify <enter>s
default behavior?  Or as a last resort, how can I pass Control
characters via Expect so they are recognizable by the receiving system
rather than just being displayed on the screen as ^E or whatever?

Other users w/Hummingbird's telnet work fine so it should be just a
simple setting.  The goal is to automate downloading configuration
files, but the receiving systems apparently have severe time
sensitivities so copy/paste blows up all too often to be feasible.

Any help over what should be a minor bump will be greatly appreciated.
Joe





More information about the Discuss mailing list