aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-07 20:59:48 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-07 20:59:48 +0200
commit9e7ca7538e2f96fda9cbdc126887afc8d7d15b11 (patch)
tree1c80ab7de0ef0ef9fe62f429f246484b3a35da2b /tools
parenta1407e29cf0b47d5db157ebedcec8139f82cfc6c (diff)
downloadltask-9e7ca7538e2f96fda9cbdc126887afc8d7d15b11.tar.gz
Added parallel task execution
Parallel task execution + hostname and stderr prefix to output
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rexec.sh2
1 files changed, 1 insertions, 1 deletions
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 $?