parallel/unittest/tests-to-run/test21.sh
Ole Tange 48c89d6929 Added --sshloginfile .. or -S .. means use ~/.parallel/sshloginfile.
Changed .parallelrc to .parallel/config to avoid having two files in ~/
2010-08-14 22:51:09 +02:00

18 lines
370 B
Bash

#!/bin/bash
SERVER1=parallel-server3
SERVER2=parallel-server2
echo '### Test $PARALLEL'
echo | PARALLEL=--number-of-cpus parallel
seq 1 2 | PARALLEL="-S$SERVER1
-Sssh -l parallel $SERVER2
-j1" parallel -kv echo
echo '### Test ~/.parallel/config'
echo "-S$SERVER1
-Sssh -l parallel $SERVER2
-j1" > ~/.parallel/config
seq 1 2 | parallel -kv echo
rm ~/.parallel/config