Update dsmon.sh
This commit is contained in:
14
dsmon.sh
14
dsmon.sh
@@ -353,13 +353,13 @@ RUNCMD(){
|
|||||||
nc_count=0; completed=false
|
nc_count=0; completed=false
|
||||||
until [ "${completed}" == "true" ]; do
|
until [ "${completed}" == "true" ]; do
|
||||||
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}
|
||||||
|
|
||||||
if [[ "${nodecmd}" != *"*"* ]]; then
|
if [[ "${nodecmd}" != *"*"* ]]; then
|
||||||
nodecmd_output=$(cat ${nodecmd})
|
nodecmd_output=$(cat ${nodecmd})
|
||||||
|
|||||||
Reference in New Issue
Block a user