From 8b2b0bdec0ff2991b3de4e70406caf8d9c064549 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 13:00:43 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 229f40e..049f3f7 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -149,8 +149,8 @@ CHECK(){ fi for hostname in "${hostnames_sort[@]}"; do until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 12 ]; do tmp=tmp; done - RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results & - + # RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results & + stdbuf -oL -eL bash -c "/usr/local/bin/dsmon runcheck '${hostname}'" > /tmp/dscheck.${hostname}.results & done [ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n" @@ -208,7 +208,7 @@ RUNCHECK(){ RUN_CHECK ${1} } -RUN_CHECK() { +RUN_CHECK2() { touch /tmp/dscheck.${hostname}.running echo ">>> DEBUG START <<<" echo "Hostname is: $1" @@ -218,7 +218,7 @@ mv /tmp/dscheck.${hostname}.running /tmp/dscheck.${hostname}.done } -RUN_CHECK2(){ +RUN_CHECK(){ hostname=${1} touch /tmp/dscheck.${hostname}.running hostid=${host_ids[$hostname]}