Update dsmon.sh

This commit is contained in:
2025-06-14 13:02:22 -05:00
parent 8b2b0bdec0
commit 611287daea

View File

@@ -150,7 +150,7 @@ CHECK(){
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 &
stdbuf -oL -eL bash -c "/usr/local/bin/dsmon runcheck '${hostname}'" > /tmp/dscheck.${hostname}.results &
unbuffer bash -c "/usr/local/bin/dsmon runcheck '${hostname}'" > /tmp/dscheck.${hostname}.results &
done
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"