Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Unable to match Net::Telnet Prompt on CentOS. However, the same prompt works fine on FC20

by VinsWorldcom (Prior)
on Jan 16, 2019 at 19:11 UTC ( #1228656=note: print w/replies, xml ) Need Help??


in reply to Unable to match Net::Telnet Prompt on CentOS. However, the same prompt works fine on FC20

You could set:

my $obj = Net::Telnet->new( ... dump_log => 'dump.log', .... } # or $obj->dump_log('dump.log');

on your Net::Telnet object to get a "binary" log file showing all the hex characters of what's on the wire - then you could see any funky escape characters in the prompt as suggested by RMGir above.

  • Comment on Re: Unable to match Net::Telnet Prompt on CentOS. However, the same prompt works fine on FC20
  • Download Code

Replies are listed 'Best First'.
Re^2: Unable to match Net::Telnet Prompt on CentOS. However, the same prompt works fine on FC20
by shoundic (Novice) on Jan 18, 2019 at 06:09 UTC
    Thanks, by using dump_log I was able to solve the issue.
      Excellent! But now I'm curious: what was it? :)

      Mike

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2020-05-27 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (153 votes). Check out past polls.

    Notices?