X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=blobdiff_plain;f=rsc;h=74be3fdb0a73245240cb0e8f1a28a8e1e1d2cf30;hp=9e7e760b33cc5e4fc03c8d0c6cedb9153dea347b;hb=f7bd9b51138dbccb7cc2fd27f07ef66d5d2d79cf;hpb=222d20343e909e025728ae41acc5ad49b49a3c04 diff --git a/rsc b/rsc index 9e7e760..74be3fd 100755 --- a/rsc +++ b/rsc @@ -39,6 +39,10 @@ if($ARGV[0] eq "-s") { } $ea = encode_base64($arg); $ea =~ s/\n//g; - exec "ssh", "$host", "rsc", "-s", $ea; + if(-t STDIN) { + push @sshopts, "-t"; + } + push @sshopts, "-q"; + exec "ssh", @sshopts, "$host", "rsc", "-s", $ea; die "$!"; }