From e1bef7a79e54968f5254b434ce531b15f1313b48 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 14:44:23 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index f2eb396..7fb0a6b 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -149,8 +149,7 @@ CHECK(){ started_hosts=0 for hostname in "${hostnames_sort[@]}"; do while [ $(jobs -rp | wc -l) -ge 15 ]; do sleep 0.5; done - # unbuffer bash -c "/usr/local/bin/dsmon runcheck '${hostname}'" > /tmp/dscheck.${hostname}.results & - unbuffer RUN_CHECK "$hostname" > /tmp/dscheck.${hostname}.results & + unbuffer bash -c "/usr/local/bin/dsmon runcheck '${hostname}'" > /tmp/dscheck.${hostname}.results & ((started_hosts++)) [ "${1}" != "report" ] && printf "\r${idsCL[LightCyan]}${MSG}${spc}: Started on %d of %d hosts %s${idsCL[Default]}" "${started_hosts}" "${#hostnames_sort[@]}" $([[ "$started_hosts" -lt "${#hostnames_sort[@]}" ]] && echo " ..." || echo "")