Update dsmon.sh

This commit is contained in:
2024-01-26 09:59:24 -06:00
parent c54189f253
commit 894b64ad56

View File

@@ -370,13 +370,14 @@ RUNCMD(){
for nodecmd in /tmp/.dsmon.runcmd.*.done; do for nodecmd in /tmp/.dsmon.runcmd.*.done; do
# HOST=$(grep -oP '(?<=runcmd.).*?(?=.done)' <<< "${nodecmd}") # HOST=$(grep -oP '(?<=runcmd.).*?(?=.done)' <<< "${nodecmd}")
# if [ "${HOST}" != "*" ]; then # if [ "${HOST}" != "*" ]; then
if [[ "${nodecmd}" != *"*"* ]]; then # if [[ "${nodecmd}" != *"*"* ]]; then
nodecmd_output=$(cat ${nodecmd}) # nodecmd_output=$(cat ${nodecmd})
[ "${nodecmd_output}" != "" ] && echo -e "${nodecmd_output}\n" # [ "${nodecmd_output}" != "" ] && echo -e "${nodecmd_output}\n"
fi # fi
rm -f ${nodecmd} # rm -f ${nodecmd}
((nc_count++)) ((nc_count++))
done done
echo "${ncount} - ${nc_count}"
if [ ${nc_count} -eq ${ncount} ]; then if [ ${nc_count} -eq ${ncount} ]; then
completed=true completed=true
break break