From fb8b6e3616e6d8b4add57e94f59b18f01a262509 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 14:46:33 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dsmon.sh b/dsmon.sh index 48e6eec..9727d62 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -156,10 +156,12 @@ CHECK(){ done [ "${1}" != "report" ] && echo -e "\r\033[2K${idsCL[LightCyan]}${MSG}${spc}: ${idsCL[LightGreen]}Done${idsCL[Default]}" echo + echo shopt -s nullglob nc_count=0; lc_count=0; completed=false; scanstart=$(date +%s) until [ "${completed}" == "true" ]; do until [ $(ls /tmp/dscheck.*.done 2>/dev/null | wc -l) -gt 0 ]; do tmp=tmp; done + echo -e "\r" for host in /tmp/dscheck.*.done; do NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}") if [ -n "$NTS" ]; then