|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Getting variable sized reapones using Net::SSH2by Illuminatus (Curate) |
| on Sep 06, 2012 at 17:58 UTC ( #992158=note: print w/ replies, xml ) | Need Help?? |
|
It seems that the read method is exact; if you're blocking, then it will wait for as many chars as you ask for. There is an undocumented method in Channel called READLINE. Changing your last 3 lines thusly: and keeping the buflen large (at 10K) gave me the results without hanging. fnord
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||