in reply to problem with net::telnet moduleand STDOUT
If ls works (presuming that means several screens worth of data) but the 'flow' command does not and starts paging it is an issue of the interaction between flow and the Net::Telnet virtual tty. I presume that the flow command automatically pages if it detects a (screen/buffer) full of data has been written. I suspect that increasing the size of the Net::Telnet buffer (so it is large enough to accept all the expected data++) may fix the problem $obj->max_buffer_length(BIG_NUM)
Also note that there is an example in the docs that shows how to copy a big file, so if the previous suggestion does not work perhaps just redirect the flow output to a file and then read from that. Other options to consider are the getlines() method.
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem with net::telnet moduleand STDOUT
by nigels (Initiate) on Jul 26, 2004 at 12:20 UTC | |
by tachyon (Chancellor) on Jul 26, 2004 at 12:41 UTC | |
by nigels (Initiate) on Jul 26, 2004 at 13:57 UTC | |
by tachyon (Chancellor) on Jul 26, 2004 at 14:06 UTC |