Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1228656]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-25 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found