aboutsummaryrefslogtreecommitdiff
path: root/tools/rexec.sh
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-07 00:31:53 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-07 00:31:53 +0200
commita1407e29cf0b47d5db157ebedcec8139f82cfc6c (patch)
treef857432f675d08cf2579213218f544399b86df04 /tools/rexec.sh
parenta1f34001696c44139b668918ea52c1add0dde7ea (diff)
downloadltask-a1407e29cf0b47d5db157ebedcec8139f82cfc6c.tar.gz
Changed output to differentiate STDERR/STEDOUT
Diffstat (limited to 'tools/rexec.sh')
-rwxr-xr-xtools/rexec.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/rexec.sh b/tools/rexec.sh
index 558540c..388cbc3 100755
--- a/tools/rexec.sh
+++ b/tools/rexec.sh
@@ -24,7 +24,7 @@ SSH_IDENTITY=~/.ssh/id_rsa
SSH_PORT=22
SSH_HOST=
-SSH_OPTIONS="-o NumberOfPasswordPrompts=0 -o StrictHostKeyChecking=no"
+SSH_OPTIONS="-q -o NumberOfPasswordPrompts=0 -o StrictHostKeyChecking=no"
SSH="ssh $SSH_OPTIONS"
SCRIPT_FILES=()
@@ -61,7 +61,6 @@ function parse_args() {
echo $0 -h for help
exit 1;;
esac
-
done
[ -z $SSH_HOST ] && echo No host specified && exit 1
@@ -87,5 +86,5 @@ parse_args
[ ${#FILES[@]} -gt 0 ] && scp $SSH_OPTIONS -i $SSH_IDENTITY -P $SSH_PORT ${FILES[@]} $SSH_HOST:
-cat ${SCRIPT_FILES[@]} | $SSH -p $SSH_PORT -i $SSH_IDENTITY $SSH_HOST "/bin/bash"
+cat ${SCRIPT_FILES[@]} | $SSH -p $SSH_PORT -i $SSH_IDENTITY $SSH_HOST "/bin/bash 2>&1" 2>/dev/null
exit $?