anton has asked for the wisdom of the Perl Monks concerning the following question:
It causes a time-out and quits the program. My theory is that the output data is page'd (the switch responds with either "--More--" or "Press c for continous, q for quit, <space> for one more row" and then halts until a char has been pressed. But "->cmd" doesn't issue this, tries to read for X seconds then quits. Is there any way I can tell the Telnet-package to read everything, or do I need to use $telnet->send and $telnet->getline? :< I know that this might be the wrong forum to ask this, but I'm running out of ideas. =) Thanks in advance. Best regards, Anton.my @tmp = $telnet->cmd("sh ver");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with telnet and paging
by salva (Canon) on Dec 19, 2012 at 11:32 UTC | |
|
Re: Problem with telnet and paging
by roboticus (Chancellor) on Dec 19, 2012 at 11:51 UTC | |
|
Re: Problem with telnet and paging
by VinsWorldcom (Prior) on Dec 19, 2012 at 13:09 UTC | |
by anton (Initiate) on Dec 19, 2012 at 19:03 UTC | |
by tbone654 (Beadle) on Dec 24, 2012 at 21:06 UTC | |
|
Re: Problem with telnet and paging
by Anonymous Monk on Apr 09, 2015 at 09:24 UTC |