From 9e7ca7538e2f96fda9cbdc126887afc8d7d15b11 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 7 Jun 2020 20:59:48 +0200 Subject: Added parallel task execution Parallel task execution + hostname and stderr prefix to output --- tools/rexec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/rexec.sh b/tools/rexec.sh index 388cbc3..d60c021 100755 --- a/tools/rexec.sh +++ b/tools/rexec.sh @@ -86,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 2>&1" 2>/dev/null +cat ${SCRIPT_FILES[@]} | $SSH -p $SSH_PORT -i $SSH_IDENTITY $SSH_HOST '/bin/bash 2> >(while read line; do echo [ERR] $line; done)' 2>/dev/null exit $? -- cgit v1.2.3