Update dsmon.sh

This commit is contained in:
2025-06-14 09:52:36 -05:00
parent 7c5ae9231b
commit 00a4621dde

View File

@@ -147,6 +147,7 @@ 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 "1:'$NTS'"
if [ -n "$NTS" ]; then
# echo -e "$(cat /tmp/dscheck.${NTS}.results)"
# rm -f /tmp/dscheck.${NTS}.* >/dev/null 2>&1