From a56ec44671eab7c6b8a940312a67f5d3f99da5bb Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 6 Jan 2024 23:29:30 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index e6e7c2f..c7a8685 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -143,7 +143,7 @@ CHECK(){ nc_count=0; completed=false; scanstart=$(date +%s) until [ "${completed}" == "true" ]; do if [ -f /tmp/dscheck.*.done ]; then - for host in /tmp/dscheck.*.done >/dev/null 2>&1; do + for host in /tmp/dscheck.*.done; do NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${nodestatus}") if [ "${NTS}" != "*" ]; then hoststatus=$(cat /tmp/dscheck.${NTS}.results)