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 reply to Re^4: Print log at runtime instead of dumping all at once later.. Net::SSH output buffer
by salva
in thread Print log at runtime instead of dumping all at once later
by Technext
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |