From 894b64ad56f2b418de5a7fd03f2f37cd17bfbe07 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 26 Jan 2024 09:59:24 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 7c2b91a..2a564e5 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -370,13 +370,14 @@ RUNCMD(){ for nodecmd in /tmp/.dsmon.runcmd.*.done; do # HOST=$(grep -oP '(?<=runcmd.).*?(?=.done)' <<< "${nodecmd}") # if [ "${HOST}" != "*" ]; then - if [[ "${nodecmd}" != *"*"* ]]; then - nodecmd_output=$(cat ${nodecmd}) - [ "${nodecmd_output}" != "" ] && echo -e "${nodecmd_output}\n" - fi - rm -f ${nodecmd} + # if [[ "${nodecmd}" != *"*"* ]]; then + # nodecmd_output=$(cat ${nodecmd}) + # [ "${nodecmd_output}" != "" ] && echo -e "${nodecmd_output}\n" + # fi + # rm -f ${nodecmd} ((nc_count++)) done + echo "${ncount} - ${nc_count}" if [ ${nc_count} -eq ${ncount} ]; then completed=true break