mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-25 14:17:53 +00:00
42a5f4e0cc
max_jobs_running could be resat if -j is a changed file. dummy children was not killed if cmd line was too long. default number of jobs for --semaphore set to 1. test25 had race condition. test22 -j10 added. test13 -j9 added. test47 remote cleanup added before test. test17 remote cleanup added before test.
23 lines
670 B
Bash
Executable file
23 lines
670 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Test -I
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -k -I :: echo {} ::'
|
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -j1 -X -k -I :: echo a{} b::'
|
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -j1 -m -k -I :: echo a{} b::'
|
|
|
|
seq 1 60000 | parallel -I :: -m -j1 echo a::b::c | \
|
|
mop -q "|sort |md5sum" :par
|
|
CHAR=$(cat ~/.mop/:par | wc -c)
|
|
LINES=$(cat ~/.mop/:par | wc -l)
|
|
echo -n "Chars per line ($CHAR/$LINES): "
|
|
echo "$CHAR/$LINES" | bc
|
|
|
|
seq 1 60000 | parallel -I :: -X -j1 echo a::b::c | \
|
|
mop -q "|sort |md5sum" :par
|
|
CHAR=$(cat ~/.mop/:par | wc -c)
|
|
LINES=$(cat ~/.mop/:par | wc -l)
|
|
echo -n "Chars per line ($CHAR/$LINES): "
|
|
echo "$CHAR/$LINES" | bc
|