niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
redefining Net::Telnet "escape" character
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Jay Rogers
*nix forums beginner


Joined: 28 Feb 2005
Posts: 1

PostPosted: Mon Feb 28, 2005 10:19 pm    Post subject: Re: redefining Net::Telnet "escape" character Reply with quote

Joe mecklin <jm5379@sbcglobal.net> writes:
Quote:
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.
Back to top
Joe mecklin
*nix forums beginner


Joined: 24 Feb 2005
Posts: 2

PostPosted: Thu Feb 24, 2005 1:32 pm    Post subject: redefining Net::Telnet "escape" character Reply with quote

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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Wed Jan 07, 2009 5:58 pm | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts "CHARACTER SET COLLATE NULL" error with mySQL 4.0.27 thomas Armstrong MySQL 1 Thu Jul 20, 2006 9:11 am
No new posts Ascii character typeing Sonu Suse 2 Wed Jul 19, 2006 6:13 am
No new posts still confused about headers, inline functions, linking, ... pookiebearbottom@yahoo.co C++ 6 Tue Jul 18, 2006 3:58 pm
No new posts matching for specific ascii decimal "non-printable charac... Jack Perl 2 Tue Jul 18, 2006 3:30 am
No new posts Not able to telnet Ramesh D Solaris 1 Mon Jul 17, 2006 1:21 pm

MPAA | Internet Advertising | Secured Loans | Credit Card Consolidation | Problem Mortgage
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2843s ][ Queries: 20 (0.2124s) ][ GZIP on - Debug on ]