From a1407e29cf0b47d5db157ebedcec8139f82cfc6c Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 7 Jun 2020 00:31:53 +0200 Subject: Changed output to differentiate STDERR/STEDOUT --- tools/rexec.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/rexec.sh') 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 $? -- cgit v1.2.3