Unfortunately your code as posted does not compile:
$ perl -I. -cw 11102335.pl Global symbol "$host_prompt" requires explicit package name at 1110233 +5.pl line 14. Global symbol "$host_prompt" requires explicit package name at 1110233 +5.pl line 20. 11102335.pl had compilation errors.
Without digging further, the value of $host_prompt might be key to your problem as described, but we can't tell that for sure if you don't provide an SSCCE.
In reply to Re: Command sent via Net::Telnet is not getting logged in CentOS. However, the same is getting logged in Fedora 20
by hippo
in thread Command sent via Net::Telnet is not getting logged in CentOS. However, the same is getting logged in Fedora 20
by shoundic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |