From 0788b5cf2760869c127062f900f32bbd504ff70d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 12:07:08 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index b492c7f..7795247 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -147,7 +147,7 @@ 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 & done [ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n" @@ -180,7 +180,7 @@ CHECK(){ sleep 1s done - end=`date +%s`; runtime=$((end-start)); echo -e "\nScript Runtime: ${runtime}" + end=`date +%s`; runtime=$((end-start)); echo -e "\nScript Runtime: ${runtime}s" echo } @@ -316,6 +316,7 @@ ${DRIVE} : ${DRIVEINFO_FREE[$DRIVE]}GB out of ${DRIVEINFO_TOT[$DRIVE]}GB Free ($ fi sleep 0.001s mv /tmp/dscheck.${hostname}.running /tmp/dscheck.${hostname}.done + fflush } SETUPSSH(){