in reply to Re: Net::OpenSSH how to stop(zap) capturing after time
in thread Net::OpenSSH how to stop(zap) capturing after time
Wow, awesome, but...
If i set timeout to 1 and command to `cat /dev/urandom` it takes only 13 seconds ( "$cmd & sleep $timeout; kill \$!" )
And if command is `echo Hello, World` script returns Exit Code 1, but i think i can fix it :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::OpenSSH how to stop(zap) capturing after time
by salva (Canon) on Mar 22, 2011 at 10:48 UTC | |
by Anonymous Monk on Mar 22, 2011 at 20:28 UTC |