X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=blobdiff_plain;f=rsc;fp=rsc;h=c915aab0d2cf1d7ea0ad05490ce24047401014c6;hp=9e7e760b33cc5e4fc03c8d0c6cedb9153dea347b;hb=33dc94de07ef094300d2ea181998ccd719fcc1f2;hpb=222d20343e909e025728ae41acc5ad49b49a3c04 diff --git a/rsc b/rsc index 9e7e760..c915aab 100755 --- a/rsc +++ b/rsc @@ -39,6 +39,9 @@ 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"; + } + exec "ssh", @sshopts, "$host", "rsc", "-s", $ea; die "$!"; }