3 # SPDX-FileCopyrightText: 2021 Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc.
5 # SPDX-License-Identifier: GPL-3.0-or-later
7 SERVER1
=parallel-server1
8 SERVER2
=parallel-server2
9 SERVER2
=parallel-server3
13 SSHLOGIN1
=$SSHUSER1@
$SERVER1
14 SSHLOGIN2
=$SSHUSER2@
$SERVER2
15 SSHLOGIN3
=$SSHUSER3@
$SERVER3
17 #SERVER1=parallel-server1
18 #SERVER2=parallel-server2
20 echo '### Test $PARALLEL - single line'
21 echo | PARALLEL
=--number-of-cpus parallel
22 (echo 1; echo 1) | PARALLEL
="-S$SSHLOGIN1 -Sssh\ -l\ $SSHUSER2\ $SERVER2 -j1" parallel
-kv hostname\
; echo |
sort
24 echo '### Test $PARALLEL - multi line'
25 (echo 1; echo 1) | PARALLEL
="-S$SSHLOGIN1
26 -Sssh\ -l\ $SSHUSER2\ $SERVER2
27 -j1" parallel
-kv hostname\
; echo |
sort
29 echo '### Test ~/.parallel/config - single line'
30 echo "-S$SSHLOGIN1 -Sssh\ -l\ $SSHUSER2\ $SERVER2 -j1" > ~
/.parallel
/config
31 (echo 1; echo 1) | parallel
-kv hostname\
; echo |
sort
33 echo '### Test ~/.parallel/config - multi line'
35 -Sssh\ -l\ $SSHUSER2\ $SERVER2
36 -j1" > ~
/.parallel
/config
37 (echo 1; echo 1) | parallel
-kv hostname\
; echo |
sort