http://qs321.pair.com?node_id=1228656


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