Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 buffer

by salva (Canon)
on Jul 02, 2015 at 11:04 UTC ( [id://1132952]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1132952]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-26 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found