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
|
|
|
|
|
|
|
|
echo '### Test $PARALLEL'
|
2010-08-14 20:51:09 +00:00
|
|
|
echo | PARALLEL=--number-of-cpus parallel
|
2010-06-04 00:16:50 +00:00
|
|
|
seq 1 2 | PARALLEL="-S$SERVER1
|
|
|
|
-Sssh -l parallel $SERVER2
|
2010-08-14 20:51:09 +00:00
|
|
|
-j1" parallel -kv echo
|
2010-06-04 00:16:50 +00:00
|
|
|
|
2010-08-14 20:51:09 +00:00
|
|
|
echo '### Test ~/.parallel/config'
|
2010-06-04 00:16:50 +00:00
|
|
|
echo "-S$SERVER1
|
|
|
|
-Sssh -l parallel $SERVER2
|
2010-08-14 20:51:09 +00:00
|
|
|
-j1" > ~/.parallel/config
|
|
|
|
seq 1 2 | parallel -kv echo
|
|
|
|
rm ~/.parallel/config
|