diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-06-07 20:59:48 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-06-07 20:59:48 +0200 |
commit | 9e7ca7538e2f96fda9cbdc126887afc8d7d15b11 (patch) | |
tree | 1c80ab7de0ef0ef9fe62f429f246484b3a35da2b /tools/rexec.sh | |
parent | a1407e29cf0b47d5db157ebedcec8139f82cfc6c (diff) | |
download | ltask-9e7ca7538e2f96fda9cbdc126887afc8d7d15b11.tar.gz |
Added parallel task execution
Parallel task execution + hostname and stderr prefix to output
Diffstat (limited to 'tools/rexec.sh')
-rwxr-xr-x | tools/rexec.sh | 2 |
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 $? |