Update dsmon.sh

This commit is contained in:
2025-06-14 12:21:56 -05:00
parent dc5882ed7a
commit 0958b69df8

View File

@@ -163,6 +163,7 @@ chmod +x /tmp/run_check_${hostname}.sh
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
sleep 1s
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
if [ -n "$NTS" ]; then
# echo "'$host' = '$NTS'"