2013-01-09 22:06:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-09-28 15:44:54 +00:00
|
|
|
cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | stdout parallel -j10 -k -L1
|
2013-01-09 22:06:01 +00:00
|
|
|
echo '### Test bug #34241: --pipe should not spawn unneeded processes'
|
2013-01-21 22:10:34 +00:00
|
|
|
seq 5 | ssh csh@lo parallel -k --block 5 --pipe -j10 cat\\\;echo Block_end
|
2013-08-14 18:11:00 +00:00
|
|
|
|
|
|
|
echo '### --env _'
|
2013-09-21 18:47:27 +00:00
|
|
|
fUbAr="OK FUBAR" parallel -S csh@lo --env _ echo '$fUbAr $DISPLAY' ::: test
|
|
|
|
echo '### --env _ with explicit mentioning of normally ignored var $DISPLAY'
|
|
|
|
fUbAr="OK FUBAR" parallel -S csh@lo --env DISPLAY,_ echo '$fUbAr $DISPLAY' ::: test
|
2013-08-14 18:11:00 +00:00
|
|
|
|
2013-09-28 15:44:54 +00:00
|
|
|
echo 'bug #40137: SHELL not bash: Warning when exporting funcs'
|
|
|
|
. <(printf 'myfunc() {\necho $1\n}'); export -f myfunc; parallel --env myfunc -S lo myfunc ::: no_warning
|
|
|
|
. <(printf 'myfunc() {\necho $1\n}'); export -f myfunc; SHELL=/bin/sh parallel --env myfunc -S lo myfunc ::: warning
|
|
|
|
|
2013-08-16 11:11:35 +00:00
|
|
|
echo '### --filter-hosts --slf <()'
|
|
|
|
parallel --nonall --filter-hosts --slf <(echo localhost) echo OK
|
|
|
|
|
2013-09-28 13:59:03 +00:00
|
|
|
echo '### bug #40002: --files and --nonall seem not to work together:'
|
|
|
|
parallel --files --nonall -S localhost true | tee >(parallel rm) | wc -l
|
|
|
|
|
|
|
|
echo '### bug #40001: --joblog and --nonall seem not to work together:'
|
|
|
|
parallel --joblog - --nonall -S lo,localhost true | wc -l
|
2013-09-28 15:55:04 +00:00
|
|
|
|
|
|
|
echo '### bug #40132: FreeBSD: --workdir . gives warning if . == $HOME'
|
|
|
|
cd && parallel --workdir . -S lo pwd ::: ""
|
|
|
|
|
2013-01-09 22:06:01 +00:00
|
|
|
EOF
|