2010-11-28 03:11:45 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-01-24 01:02:07 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2024 Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc.
|
2021-03-22 20:16:35 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2017-01-16 23:16:03 +00:00
|
|
|
SERVER1=parallel-server1
|
2010-11-28 03:11:45 +00:00
|
|
|
SERVER2=parallel-server2
|
2020-08-07 20:20:30 +00:00
|
|
|
SSHUSER1=vagrant
|
|
|
|
SSHUSER2=vagrant
|
|
|
|
SSHLOGIN1=$SSHUSER1@$SERVER1
|
|
|
|
SSHLOGIN2=$SSHUSER2@$SERVER2
|
2010-11-28 03:11:45 +00:00
|
|
|
|
2023-02-19 13:49:30 +00:00
|
|
|
short_TMPDIR() {
|
|
|
|
# TMPDIR must be short for -M
|
|
|
|
export TMPDIR=/tmp/ssh/'
|
|
|
|
`touch /tmp/tripwire`
|
|
|
|
'
|
|
|
|
mkdir -p "$TMPDIR"
|
|
|
|
}
|
|
|
|
|
2010-12-15 23:12:02 +00:00
|
|
|
echo '### Test -M (--retries to avoid false errors)'
|
2010-11-28 03:11:45 +00:00
|
|
|
|
2023-02-19 13:49:30 +00:00
|
|
|
short_TMPDIR
|
2020-08-07 20:20:30 +00:00
|
|
|
seq 1 30 | parallel -j5 --retries 3 -k -M -S $SSHLOGIN1,$SSHLOGIN2 echo 2>/dev/null
|
|
|
|
seq 1 30 | parallel -j10 --retries 3 -k -M -S $SSHLOGIN1,$SSHLOGIN2 echo 2>/dev/null
|