3 ms·
You can use xargs for parallel remote execution too. In the simplest case: list-hosts | xargs \ -P8 \ -n1 \ -I% \ ssh % some-command
by sigil 10y ago
You can use xargs for parallel remote execution too. In the simplest case:
list-hosts |
xargs \
-P8 \
-n1 \
-I% \
ssh % some-command
- bandrami 10y agoSure, and you can also run an ssh command inside backticks too. There's something of a Turing tar pit here.