2010-06-04 00:16:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2010-06-16 03:03:52 +00:00
|
|
|
SERVER1=parallel-server3
|
2010-06-04 00:16:50 +00:00
|
|
|
SERVER2=parallel-server2
|
|
|
|
|
2010-11-13 13:57:39 +00:00
|
|
|
echo '### Test $PARALLEL - single line'
|
2010-08-14 20:51:09 +00:00
|
|
|
echo | PARALLEL=--number-of-cpus parallel
|
2010-11-13 13:57:39 +00:00
|
|
|
seq 1 2 | PARALLEL="-S$SERVER1 -Sssh\ -l\ parallel\ $SERVER2 -j1" parallel -kvv echo
|
|
|
|
|
|
|
|
echo '### Test $PARALLEL - multi line'
|
2010-06-04 00:16:50 +00:00
|
|
|
seq 1 2 | PARALLEL="-S$SERVER1
|
2010-11-13 13:57:39 +00:00
|
|
|
-Sssh\ -l\ parallel\ $SERVER2
|
2010-10-26 23:50:58 +00:00
|
|
|
-j1" parallel -kvv echo
|
2010-06-04 00:16:50 +00:00
|
|
|
|
2010-11-13 13:57:39 +00:00
|
|
|
echo '### Test ~/.parallel/config - single line'
|
|
|
|
echo "-S$SERVER1 -Sssh\ -l\ parallel\ $SERVER2 -j1" > ~/.parallel/config
|
|
|
|
seq 1 2 | parallel -kvv echo
|
|
|
|
|
|
|
|
echo '### Test ~/.parallel/config - multi line'
|
2010-06-04 00:16:50 +00:00
|
|
|
echo "-S$SERVER1
|
2010-11-13 13:57:39 +00:00
|
|
|
-Sssh\ -l\ parallel\ $SERVER2
|
2010-08-14 20:51:09 +00:00
|
|
|
-j1" > ~/.parallel/config
|
2010-10-26 23:50:58 +00:00
|
|
|
seq 1 2 | parallel -kvv echo
|
2010-08-14 20:51:09 +00:00
|
|
|
rm ~/.parallel/config
|