in reply to Re^3: Print log at runtime instead of dumping all at once later.. Net::SSH output buffer
in thread Print log at runtime instead of dumping all at once later

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 $?.

  • Comment on Re^4: Print log at runtime instead of dumping all at once later.. Net::SSH output buffer
  • Select or Download Code

Replies are listed 'Best First'.
Re^5: Print log at runtime instead of dumping all at once later.. Net::SSH output buffer
by Technext (Acolyte) on Jul 02, 2015 at 17:14 UTC
    Thanks for sharing the details @salva! Thanks for the pointers @Discipulus!