Update dsmon.sh

This commit is contained in:
2025-06-14 09:41:31 -05:00
parent 24206eaff1
commit 8320da4c79

View File

@@ -145,13 +145,12 @@ CHECK(){
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
echo "1:'$host'"
NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${host}")
echo "2:'$NTS'"
if [ "${NTS}" != "*" ]; then
# echo -e "$(cat /tmp/dscheck.${NTS}.results)"
# rm -f /tmp/dscheck.${NTS}.* >/dev/null 2>&1
((nc_count++))
echo "2:'$NTS' = ${nc_count}"
fi
done
if [ $(($(date +%s)-scanstart)) -gt 300 ]; then