in reply to Re: Net::OpenSSH loosing lines ins reply
in thread Net::OpenSSH loosing lines ins reply
if (timeout_call($workertimeout, sub{ $ssh->system({ timeout => $sshtimeout, stdin_data => "\n", stdout_file => "/tmp/ssh_del_$$.txt" }, $sshcmd."\n"); open FILE, "<", "/tmp/ssh_del_$$.txt"; my @cmdout = <FILE>; close(FILE); # my @cmdout = $ssh->capture({timeout => $sshtimeout, stdin_da +ta => "\n"}, $sshcmd."\n"); # if ($ssh->error) # { # $error = $ssh->error; # chomp($error); # print STDOUT "ERROR-2: " . $error . "\n"; # rmtree([ $path ]); # exit 2; # }; push @rawout, @cmdout; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::OpenSSH loosing lines ins reply
by salva (Canon) on Jun 04, 2014 at 11:10 UTC | |
|
Re^3: Net::OpenSSH loosing lines ins reply
by Andy16 (Acolyte) on Jun 04, 2014 at 11:53 UTC | |
by salva (Canon) on Jun 04, 2014 at 12:07 UTC | |
by Andy16 (Acolyte) on Jun 04, 2014 at 12:19 UTC | |
by salva (Canon) on Jun 04, 2014 at 12:33 UTC | |
by Andy16 (Acolyte) on Jun 04, 2014 at 12:44 UTC | |
|