|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Am I using Net::SSH2 the wrong way?by salva (Monsignor) |
| on Jan 18, 2013 at 11:04 UTC ( #1014034=note: print w/ replies, xml ) | Need Help?? |
|
Well, just letting some time elapse in order to ensure that all the data has arrived is not a reliable approach. Is there any reason for setting the connection in non-blocking mode? In any case, you can try using Net::SSH::Any instead of Net::SSH2. It can run on top of Net::SSH2 and provides a higher API, making most tasks easier to accomplish. For instance:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||