MiklerGM has asked for the wisdom of the Perl Monks concerning the following question:
Thank you!sub ssh_go{ my $host = shift;<br> my $ssh = Net::OpenSSH->new("${user}\@${host}", timeout => $ti +meout);#, async => 1) if($ssh->error != 0){... }else{ my $out = $ssh->capture({stderr_to_stdout => 1}, "$cmd +"); if($ssh->error != 0){... } $LogTable{"$host"} = $out;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OpenSSH how to stop(zap) capturing after time
by salva (Canon) on Mar 22, 2011 at 09:39 UTC | |
by MiklerGM (Novice) on Mar 22, 2011 at 10:34 UTC | |
by salva (Canon) on Mar 22, 2011 at 10:48 UTC | |
by Anonymous Monk on Mar 22, 2011 at 20:28 UTC |