From a946ebed2dd978b1046a87e2793b02d5026f49b6 Mon Sep 17 00:00:00 2001 From: Louwrentius Date: Sun, 25 Jan 2009 00:07:03 +0000 Subject: [PATCH] Updated version of distributed PPSS - does not work - not tested --- trunk/ppss.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/trunk/ppss.sh b/trunk/ppss.sh index 9332ae9..e5040d0 100755 --- a/trunk/ppss.sh +++ b/trunk/ppss.sh @@ -55,7 +55,7 @@ IFS_BACKUP="$IFS" SSH_SERVER="" # Remote server or 'master'. 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="" showusage () { @@ -362,12 +362,11 @@ test_server () { # Testing if the remote server works as expected. if [ ! -z "$SSH_SERVER" ] then + exec_cmd "date" + check_status "$?" "$FUNCNAME" "Server $SSH_SERVER could not be reached" ssh -N -M "$SSH_OPTS" "$SSH_KEY" "$SSH_SERVER" & SSH_MASTER_PID="$!" - check_status "$?" "$FUNCNAME" "Server $SSH_SERVER could not be reached." - exec_cmd "read" & - else log DEBUG "No remote server specified, assuming stand-alone mode." fi