Update dsmon.sh

This commit is contained in:
2025-06-14 10:17:34 -05:00
parent e0be438ac0
commit e3eeffd6cd

View File

@@ -144,10 +144,7 @@ CHECK(){
for host in /tmp/dscheck.*.done; do
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
if [ -n "$NTS" ]; then
# cat /tmp/dscheck.${NTS}.results
while read -r line; do
printf "%s\n" "$line"
done < /tmp/dscheck.${NTS}.results
printf "%s\n" "$(cat /tmp/dscheck.${NTS}.results)"
rm -f /tmp/dscheck.${NTS}.* >/dev/null 2>&1
((nc_count++))
fi