2009-02-18 04:35:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2010-06-12 23:24:25 +00:00
|
|
|
echo '### This causes problems if we kill child processes'
|
|
|
|
seq 1 40 | parallel -j 0 seq 1 10 | sort |md5sum
|
|
|
|
seq 1 40 | parallel -j 0 seq 1 10 '| parallel -j 3 echo' | sort |md5sum
|
2010-04-18 14:18:31 +00:00
|
|
|
|
2010-06-12 23:24:25 +00:00
|
|
|
echo '### Test of xargs -m and -X'
|
2011-01-17 12:38:58 +00:00
|
|
|
seq 1 60000 | parallel -j1 -m echo | mop -d 4 "|sort |md5sum" "| wc"
|
|
|
|
(echo foo;echo bar) | parallel -j1 -m echo 1{}2{}3 A{}B{}C
|
|
|
|
(echo foo;echo bar) | parallel -j1 -X echo 1{}2{}3 A{}B{}C
|
|
|
|
seq 1 60000 | parallel -m -j1 echo a{}b{}c | mop -d 4 "|sort |md5sum" "| wc"
|
|
|
|
seq 1 60000 | parallel -m -j1 echo a{}b{}c | \
|
2010-04-18 14:18:31 +00:00
|
|
|
mop -q "|sort |md5sum" :par
|
2009-03-16 07:58:39 +00:00
|
|
|
echo -n "Chars per line: "
|
2010-04-18 14:18:31 +00:00
|
|
|
CHAR=$(cat ~/.mop/:par | wc -c)
|
|
|
|
LINES=$(cat ~/.mop/:par | wc -l)
|
2009-03-16 07:58:39 +00:00
|
|
|
echo "$CHAR/$LINES" | bc
|
2009-08-26 12:33:14 +00:00
|
|
|
|
2010-06-12 23:24:25 +00:00
|
|
|
echo '### Bug before 2009-08-26 causing regexp compile error or infinite loop'
|
|
|
|
echo a | parallel -qX echo "'"{}"' "
|
|
|
|
echo a | parallel -qX echo "'{}'"
|
2011-11-15 00:15:23 +00:00
|
|
|
|
|
|
|
echo '### nice and tcsh and Bug #33995: Jobs executed with sh instead of $SHELL'
|
|
|
|
seq 1 2 | SHELL=tcsh stdout parallel -k --nice 8 setenv a b\;echo \$SHELL
|