2013-10-21 20:31:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-07-15 00:40:38 +00:00
|
|
|
cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | stdout parallel -vj8 -k -L1
|
2013-10-21 20:31:52 +00:00
|
|
|
echo '### --filter-hosts --slf <()'
|
|
|
|
parallel --nonall --filter-hosts --slf <(echo localhost) echo OK
|
|
|
|
|
2014-06-23 00:04:37 +00:00
|
|
|
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 $?
|
2014-07-15 13:58:31 +00:00
|
|
|
|
|
|
|
echo '### bug #42725: csh with \n in variables'
|
|
|
|
not_csh() { echo This is not csh/tcsh; };
|
|
|
|
export -f not_csh;
|
|
|
|
parallel --env not_csh -S csh@lo not_csh ::: 1;
|
|
|
|
parallel --env not_csh -S tcsh@lo not_csh ::: 1;
|
|
|
|
parallel --env not_csh -S parallel@lo not_csh ::: 1;
|
|
|
|
|
|
|
|
|
2013-10-21 20:31:52 +00:00
|
|
|
EOF
|