Update dsmon.sh
This commit is contained in:
11
dsmon.sh
11
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
|
||||
|
||||
Reference in New Issue
Block a user