s/([\\\n])/\\$1/g;
$arg .= "$_\n";
}
- exec "ssh", "$host", "rsc", "-s", encode_base64($arg);
+ $ea = encode_base64($arg);
+ $ea =~ s/\n//g;
+ if(-t STDIN) {
+ push @sshopts, "-t";
+ }
+ push @sshopts, "-q";
+ exec "ssh", @sshopts, "$host", "rsc", "-s", $ea;
die "$!";
}