Another option is to write your own time-limited capture method. Use pipe_out to launch the remote command and read from the returned pipe until the timeout expires. Closing the pipe will deliver a SIGPIPE to the remote process killing it.
In reply to Re^3: Net::OpenSSH how to stop(zap) capturing after time
by salva
in thread Net::OpenSSH how to stop(zap) capturing after time
by MiklerGM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |