mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-23 06:27:55 +00:00
14 lines
464 B
Bash
14 lines
464 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
SERVER1=parallel-server3
|
||
|
SERVER2=parallel-server2
|
||
|
|
||
|
echo '### Test --onall'
|
||
|
parallel --onall -S parallel@$SERVER2,$SERVER1 '(echo {3} {2}) | awk \{print\ \$2}' ::: a b c ::: 1 2 3
|
||
|
parallel --onall -S parallel@$SERVER2,$SERVER1 -u '(echo {3} {2}) | awk \{print\ \$2}' ::: a b c ::: 1 2 3
|
||
|
|
||
|
echo '### Test --nonall'
|
||
|
parallel --nonall -S parallel@$SERVER2,$SERVER1 'hostname'
|
||
|
parallel --nonall -S parallel@$SERVER2,$SERVER1 -u 'hostname;sleep 2;hostname'
|
||
|
|