Update dsmon.sh

This commit is contained in:
2025-06-14 09:32:14 -05:00
parent 841fed9e67
commit 54e7854214

View File

@@ -146,9 +146,9 @@ CHECK(){
# 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}")
echo $NTS
if [ "${NTS}" != "*" ]; then
echo -e "$(cat /tmp/dscheck.${NTS}.results)"
echo
# echo -e "$(cat /tmp/dscheck.${NTS}.results)"
rm -f /tmp/dscheck.${NTS}.* >/dev/null 2>&1
((nc_count++))
fi