2012-12-28 20:30:30 +00:00
|
|
|
echo '### bug #36595: silent loss of input with --pipe and --sshlogin'
|
|
|
|
### bug #36595: silent loss of input with --pipe and --sshlogin
|
|
|
|
seq 10000 | xargs | parallel --pipe -S 10/localhost cat | wc
|
|
|
|
1 10000 48894
|
|
|
|
echo 'bug #36707: --controlmaster eats jobs'
|
|
|
|
bug #36707: --controlmaster eats jobs
|
|
|
|
seq 2 | parallel -k --controlmaster --sshlogin localhost echo OK{}
|
|
|
|
OK1
|
|
|
|
OK2
|
2013-02-02 21:20:36 +00:00
|
|
|
echo '### -L -n with pipe'
|
|
|
|
### -L -n with pipe
|
|
|
|
seq 14 | parallel --pipe -k -L 3 -n 2 'cat;echo 6 Ln line record'
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
4
|
|
|
|
5
|
|
|
|
6
|
|
|
|
6 Ln line record
|
|
|
|
7
|
|
|
|
8
|
|
|
|
9
|
|
|
|
10
|
|
|
|
11
|
|
|
|
12
|
|
|
|
6 Ln line record
|
|
|
|
13
|
|
|
|
14
|
|
|
|
6 Ln line record
|
|
|
|
echo '### -L -N with pipe'
|
|
|
|
### -L -N with pipe
|
|
|
|
seq 14 | parallel --pipe -k -L 3 -N 2 'cat;echo 6 LN line record'
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
4
|
|
|
|
5
|
|
|
|
6
|
|
|
|
6 LN line record
|
|
|
|
7
|
|
|
|
8
|
|
|
|
9
|
|
|
|
10
|
|
|
|
11
|
|
|
|
12
|
|
|
|
6 LN line record
|
|
|
|
13
|
|
|
|
14
|
|
|
|
6 LN line record
|
|
|
|
echo '### -l -N with pipe'
|
|
|
|
### -l -N with pipe
|
|
|
|
seq 14 | parallel --pipe -k -l 3 -N 2 'cat;echo 6 lN line record'
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
4
|
|
|
|
5
|
|
|
|
6
|
|
|
|
6 lN line record
|
|
|
|
7
|
|
|
|
8
|
|
|
|
9
|
|
|
|
10
|
|
|
|
11
|
|
|
|
12
|
|
|
|
6 lN line record
|
|
|
|
13
|
|
|
|
14
|
|
|
|
6 lN line record
|
|
|
|
echo '### -l -n with pipe'
|
|
|
|
### -l -n with pipe
|
|
|
|
seq 14 | parallel --pipe -k -l 3 -n 2 'cat;echo 6 ln line record'
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
4
|
|
|
|
5
|
|
|
|
6
|
|
|
|
6 ln line record
|
|
|
|
7
|
|
|
|
8
|
|
|
|
9
|
|
|
|
10
|
|
|
|
11
|
|
|
|
12
|
|
|
|
6 ln line record
|
|
|
|
13
|
|
|
|
14
|
|
|
|
6 ln line record
|
2013-07-04 15:20:50 +00:00
|
|
|
echo '### bug #39360: --joblog does not work with --pipe'
|
|
|
|
### bug #39360: --joblog does not work with --pipe
|
2013-07-04 15:31:36 +00:00
|
|
|
seq 100 | parallel --joblog - --pipe wc | tr '0-9' 'X'
|
2014-02-13 23:10:49 +00:00
|
|
|
Seq Host Starttime JobRuntime Send Receive Exitval Signal Command
|
|
|
|
X : XXXXXXXXXX.XXX X.XXX X X X X wc
|
2013-07-04 15:31:36 +00:00
|
|
|
XXX XXX XXX
|
2013-07-30 19:21:08 +00:00
|
|
|
echo '### bug #39572: --tty and --joblog do not work'
|
|
|
|
### bug #39572: --tty and --joblog do not work
|
|
|
|
seq 1 | parallel --joblog - -u true | tr '0-9' 'X'
|
2014-02-13 23:10:49 +00:00
|
|
|
Seq Host Starttime JobRuntime Send Receive Exitval Signal Command
|
|
|
|
X : XXXXXXXXXX.XXX X.XXX X X X X true X
|
2013-07-12 19:19:53 +00:00
|
|
|
echo '### How do we deal with missing $HOME'
|
|
|
|
### How do we deal with missing $HOME
|
2013-11-22 17:24:09 +00:00
|
|
|
unset HOME; stdout perl -w $(which parallel) -k echo ::: 1 2 3
|
2013-07-12 19:19:53 +00:00
|
|
|
parallel: Warning: $HOME not set. Using /tmp
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
echo '### How do we deal with missing $SHELL'
|
|
|
|
### How do we deal with missing $SHELL
|
2013-11-22 17:24:09 +00:00
|
|
|
unset SHELL; stdout perl -w $(which parallel) -k echo ::: 1 2 3
|
2013-07-12 19:19:53 +00:00
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
2014-07-14 16:25:45 +00:00
|
|
|
echo '### Test if length is computed correctly - first should give one line, second 2 lines each'
|
|
|
|
### Test if length is computed correctly - first should give one line, second 2 lines each
|
2015-01-03 17:57:37 +00:00
|
|
|
seq 4 | parallel -s 29 -X -kj1 echo a{}b{}c
|
2014-07-14 16:25:45 +00:00
|
|
|
a1b1c a2b2c a3b3c a4b4c
|
|
|
|
seq 4 | parallel -s 28 -X -kj1 echo a{}b{}c
|
|
|
|
a1b1c a2b2c a3b3c
|
|
|
|
a4b4c
|
|
|
|
seq 4 | parallel -s 21 -X -kj1 echo {} {}
|
|
|
|
1 2 3 4 1 2 3 4
|
|
|
|
seq 4 | parallel -s 20 -X -kj1 echo {} {}
|
|
|
|
1 2 3 1 2 3
|
|
|
|
4 4
|
2015-01-03 17:57:37 +00:00
|
|
|
seq 4 | parallel -s 23 -m -kj1 echo a{}b{}c
|
2014-07-14 16:25:45 +00:00
|
|
|
a1 2 3 4b1 2 3 4c
|
2015-01-03 17:57:37 +00:00
|
|
|
seq 4 | parallel -s 22 -m -kj1 echo a{}b{}c
|
2014-07-14 16:25:45 +00:00
|
|
|
a1 2 3b1 2 3c
|
|
|
|
a4b4c
|
|
|
|
seq 4 | parallel -s 21 -m -kj1 echo {} {}
|
|
|
|
1 2 3 4 1 2 3 4
|
|
|
|
seq 4 | parallel -s 20 -m -kj1 echo {} {}
|
|
|
|
1 2 3 1 2 3
|
|
|
|
4 4
|