Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://203771]
help
Chatterbox?
[LanX]: good morning
[choroba]: LanX good indeed
[choroba]: very cloudy here, I planned to make some picrures, but now I don't think so
[LanX]: do you like it better now?
[choroba]: Well, getting used to it
[LanX]: several people told me they like saigon. ..
[choroba]: well, beer is good here, surprisingly
[choroba]: also, I discovered several vegan/vegetarian restaurants, so I can avoid meat

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2017-02-26 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (371 votes). Check out past polls.