bonoboy has asked for the wisdom of the Perl Monks concerning the following question:
With some of my routers, when I log in, I don't get a username or password request, just the prompt. The problem is that cmd() matches against a prompt, so if you capture the output of cmd() directly after, it'll do it up to the prompt before. So you'll get whatever went on between the last two prompts, not the last one and the one directly after you issued the cmd.
Is there any way to fix this for certain instances? Like is there a 'cmd' count somewhere which can be bumped up by one by inserting a blank element or something?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Telnet::Cisco: nullifying first prompt in output for cmd() matching
by phydeauxarff (Priest) on Oct 23, 2003 at 14:08 UTC | |
by bonoboy (Sexton) on Oct 23, 2003 at 14:42 UTC | |
by Anonymous Monk on Oct 09, 2008 at 07:21 UTC |