my $output = $ssh->capture({ timeout => 10 }, "echo hello; sleep 20; echo bye"); $ssh->error and warn "operation didn't complete successfully: ". $ssh->error; print $output; #### @output = $ssh->capture($CommandE) or die "remote command failed: " . $ssh-> +error; #### @output = $ssh->capture($CommandE); $ssh->error and die "remote command failed or didn't complete successfully: " . $ssh->error;