Click here to get back home

redefining Net::Telnet "escape" character

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
redefining Net::Telnet "escape" character Joe mecklin 02-24-2005
Get Chitika Premium
Posted by Joe mecklin on February 24, 2005, 3:32 pm
Please log in for more thread options


Gentlepeople,

i'm using net::telnet to connect to a remote script (rather than a
login). the script internally uses "^]" to step back through itself,
conflicting with the default escape telnet character. this wouldn't be
a problem per se except that the login to the system uses securid
(requiring manual login each time), and once i connect i need to step
through verifying several hundred auxiliary systems; being forced to
manually login for each new test would negate the benefits of a script.

i had the idea of, once connecting, dropping back to telnet and doing a
"set escape ^[" but then realized net::telnet may not drop back to a
telnet prompt as the telnet command would (no i haven't verified this
for sure yet because i had my "epiphany" just as i was leaving work for
the day, and i've been forced to take the rest of the week off for
personal reasons).

question: what is one/the way to redefine the net::telnet escape
character from ^] to another ^[ (or anything else?)

tia,
joe


Posted by Jay Rogers on February 28, 2005, 7:19 pm
Please log in for more thread options


> question: what is one/the way to redefine the net::telnet escape
> character from ^] to another ^[ (or anything else?)

No need to redefine any chars as Net::Telnet writes all
characters (including ^]) to the remote side.

By default $telnet->print() appends a newline to the chars
you specify. Use $telnet->put() to write without appending
a newline.


Similar ThreadsPosted
changing $/ new line default character December 18, 2006, 11:03 am
How to solve the issue that \. is interpreted as any character in system("sed ... "); ? August 13, 2008, 4:44 pm
Perl6::Rules character class Segmentation Fault October 28, 2004, 10:32 am
How do you telnet from 1 host to another using Telnet Module December 21, 2005, 4:15 pm
Sending "page up" and "page down" character problem. September 7, 2004, 1:59 pm
net::telnet to ms telnet server May 19, 2005, 12:28 am
Net::Telnet December 9, 2004, 11:33 pm
NET::Telnet February 15, 2006, 8:42 am
Net::telnet June 9, 2006, 1:42 am
net::telnet problem July 23, 2004, 6:46 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap