bih71 has asked for the wisdom of the Perl Monks concerning the following question:
I am having problems with NET::TELNET from my pc to a unix platform and from there telnet to a second unix like platform. On the final platform I want to put it into a command mode. However the prompt I get back from the shell is not being recognised due to some odd characters being returned. My code is simply:-
and the output I get is:-$telnet->prompt('/> $/'); $telnet->print('ncli');
These last three characters in hex are 1B 5B 6D.$ ncli [1m [ManagedElement=1]> [m
If I do the same operation manually from the same intermediate node (using the unix telnet command) I see:-
Any ideas on how I can either live with these characters (i.e. make the prompt accept them) or stop them all together.$ ncli [ManagedElement=1]>
THanks...bih71
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Odd characters in Telnet prompt
by MidLifeXis (Monsignor) on Dec 05, 2008 at 16:46 UTC | |
|
Re: Odd characters in Telnet prompt
by Perlbotics (Archbishop) on Dec 05, 2008 at 21:13 UTC |