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