Updated version of distributed PPSS - does not work - not tested
This commit is contained in:
parent
e83dfa9582
commit
a946ebed2d
|
@ -55,7 +55,7 @@ IFS_BACKUP="$IFS"
|
||||||
|
|
||||||
SSH_SERVER="" # Remote server or 'master'.
|
SSH_SERVER="" # Remote server or 'master'.
|
||||||
SSH_KEY="" # SSH key for ssh account.
|
SSH_KEY="" # SSH key for ssh account.
|
||||||
SSH_OPTS="-o \"BatchMode yes\" \"ControlPath /tmp/master-%r@%h:%p\" -o \"ControlMaster auto\""
|
SSH_OPTS="-o \\"BatchMode=yes\\" -o \\"ControlPath /tmp/master-%r@%h:%p\\" -o \\"ControlMaster auto\\""
|
||||||
SSH_MASTER_PID=""
|
SSH_MASTER_PID=""
|
||||||
|
|
||||||
showusage () {
|
showusage () {
|
||||||
|
@ -362,12 +362,11 @@ test_server () {
|
||||||
# Testing if the remote server works as expected.
|
# Testing if the remote server works as expected.
|
||||||
if [ ! -z "$SSH_SERVER" ]
|
if [ ! -z "$SSH_SERVER" ]
|
||||||
then
|
then
|
||||||
|
exec_cmd "date"
|
||||||
|
check_status "$?" "$FUNCNAME" "Server $SSH_SERVER could not be reached"
|
||||||
|
|
||||||
ssh -N -M "$SSH_OPTS" "$SSH_KEY" "$SSH_SERVER" &
|
ssh -N -M "$SSH_OPTS" "$SSH_KEY" "$SSH_SERVER" &
|
||||||
SSH_MASTER_PID="$!"
|
SSH_MASTER_PID="$!"
|
||||||
check_status "$?" "$FUNCNAME" "Server $SSH_SERVER could not be reached."
|
|
||||||
exec_cmd "read" &
|
|
||||||
|
|
||||||
else
|
else
|
||||||
log DEBUG "No remote server specified, assuming stand-alone mode."
|
log DEBUG "No remote server specified, assuming stand-alone mode."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue