Update dsmon.sh

This commit is contained in:
2025-06-14 09:50:37 -05:00
parent f2b0242e9a
commit 457a89d7c5

View File

@@ -141,12 +141,13 @@ CHECK(){
done
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
shopt -s nullglob
nc_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
for host in /tmp/dscheck.*.done; do
NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${host}")
if [ "${NTS}" != "*" ]; then
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
if [ -n "$NTS" ]; then
# echo -e "$(cat /tmp/dscheck.${NTS}.results)"
# rm -f /tmp/dscheck.${NTS}.* >/dev/null 2>&1
((nc_count++))