mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-29 17:37:55 +00:00
25 lines
1,013 B
Bash
25 lines
1,013 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# SSH only allowed to localhost/lo
|
||
|
cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | parallel -vj2 --retries 3 -k --joblog /tmp/jl-`basename $0` -L1
|
||
|
echo '### bug #36595: silent loss of input with --pipe and --sshlogin'
|
||
|
seq 10000 | xargs | parallel --pipe -S 10/localhost cat 2>/dev/null | wc
|
||
|
|
||
|
echo 'bug #36707: --controlmaster eats jobs'
|
||
|
seq 2 | parallel -k --controlmaster --sshlogin localhost echo OK{}
|
||
|
|
||
|
echo '### --ssh lsh'
|
||
|
parallel --ssh lsh -S lo echo ::: OK
|
||
|
echo OK | parallel --ssh lsh --pipe -S csh@lo cat
|
||
|
# Todo rsync/trc csh@lo
|
||
|
# Test gl. parallel med --ssh lsh: Hvilke fejler? brug dem. Også hvis de fejler
|
||
|
|
||
|
echo '### --ssh autossh - add commands that fail here'
|
||
|
export PARALLEL_SSH=autossh; export AUTOSSH_PORT=0;
|
||
|
parallel -S lo echo ::: OK;
|
||
|
echo OK | parallel --pipe -S lo cat;
|
||
|
parallel -S lo false ::: a || echo OK should fail;
|
||
|
touch foo_autossh; stdout parallel -S csh@lo --trc {}.out touch {}.out ::: foo_autossh; rm foo_autossh*;
|
||
|
|
||
|
EOF
|