Update dsmon.sh

This commit is contained in:
2025-06-14 10:47:12 -05:00
parent fc6b2b641e
commit 49ce074b51

View File

@@ -146,8 +146,9 @@ CHECK(){
for host in /tmp/dscheck.*.done; do
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
if [ -n "$NTS" ]; then
echo "'$host' = '$NTS'"
printf "%s\n" "$(cat /tmp/dscheck.${NTS}.results)"
# echo "'$host' = '$NTS'"
cat -v /tmp/dscheck.${NTS}.results
# printf "%s\n" "$(cat /tmp/dscheck.${NTS}.results)"
cp -f /tmp/dscheck.${NTS}.results /tmp/${NTS}.result
rm -f /tmp/dscheck.${NTS}.* >/dev/null 2>&1
((nc_count++))