Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: Print log at runtime instead of dumping all at once later.. Net::SSH output bufferby salva (Canon) |
on Jul 02, 2015 at 11:04 UTC ( [id://1132952]=note: print w/replies, xml ) | Need Help?? |
If you check the documentation for the capture2 method, you will see that it doesn't accept a stdout_fh argument.
capture2 starts the remote command, and captures any output it sends to stdout and stdin until it exits. Under the hood, it also calls waitpid, and the return code from the remote process can be inspected afterwards, just looking at $?.
In Section
Seekers of Perl Wisdom
|
|