X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=blobdiff_plain;f=rsc;h=74be3fdb0a73245240cb0e8f1a28a8e1e1d2cf30;hp=0e96debd235810a20f6093a90d503a5241db45d4;hb=f7bd9b51138dbccb7cc2fd27f07ef66d5d2d79cf;hpb=535cc97f7ce80b29bbb5c183bb1079b44e011c6c diff --git a/rsc b/rsc index 0e96deb..74be3fd 100755 --- a/rsc +++ b/rsc @@ -37,6 +37,12 @@ if($ARGV[0] eq "-s") { 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 "$!"; }