mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2025-01-11 00:57:53 +00:00
d26f62a363
Number of jobs to run on remote hosts is calculated wrongly.
12 lines
422 B
Bash
12 lines
422 B
Bash
#!/bin/bash
|
|
|
|
PAR=parallel
|
|
|
|
# Test sshlogin
|
|
echo localhost >/tmp/localhost
|
|
seq 1 3 | $PAR -k --sshlogin 8/nlv.pi.dk -S 7/"-l tange nlv.pi.dk",: --sshloginfile /tmp/localhost echo
|
|
|
|
(seq 1 3;echo '>/tmp/fire';seq 5 10) | parallel -k -v -j+0 -S nlv.pi.dk,: "sleep 1; echo {}"
|
|
# Check number of CPUs being respected
|
|
(seq 1 3;echo '>/tmp/fire';seq 5 10) | parallel -k -v -j+0 -S 1/:,9/nlv.pi.dk "sleep 1; hostname; echo {}"
|