Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Parsing Net::Telnet Console Ouput

by jlongino (Parson)
on Oct 08, 2002 at 21:51 UTC ( #203771=note: print w/ replies, xml ) Need Help??


in reply to Parsing Net::Telnet Console Ouput

What you're getting back is the raw data including terminal emulation escape sequences. To get plain text, telnet to the account and modify your $term setting. You may want something simple like "tty". Exactly how you set this environment variable will vary depending on what shell you use. E.g., on my Solaris 8 unix box (running tcsh, similar to csh), I would issue the command: set term=tty

Note that if you do this (you might even want to change your shell initialization file permanently to reflect this) you may have to go back and twiddle with your expected prompt string. Also, instead of using terminal type "tty", you may want to set it to be the same or compatible with the telnet client you are using.

--Jim


Comment on Re: Parsing Net::Telnet Console Ouput
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://203771]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2014-08-27 19:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (250 votes), past polls