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.
|
---|
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 | |
by RMGir (Prior) on Jan 18, 2019 at 13:56 UTC |
In Section
Seekers of Perl Wisdom