mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 13:17:54 +00:00
14 lines
627 B
Bash
14 lines
627 B
Bash
#!/bin/bash
|
|
|
|
cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | stdout parallel -vj8 -k -L1
|
|
echo '### --filter-hosts --slf <()'
|
|
parallel --nonall --filter-hosts --slf <(echo localhost) echo OK
|
|
|
|
echo '### --wd no-such-dir - csh'
|
|
stdout parallel --wd /no-such-dir -S csh@localhost echo ::: "ERROR IF PRINTED"; echo Exit code $?
|
|
echo '### --wd no-such-dir - tcsh'
|
|
stdout parallel --wd /no-such-dir -S tcsh@localhost echo ::: "ERROR IF PRINTED"; echo Exit code $?
|
|
echo '### --wd no-such-dir - bash'
|
|
stdout parallel --wd /no-such-dir -S parallel@localhost echo ::: "ERROR IF PRINTED"; echo Exit code $?
|
|
EOF
|