diff --git a/dsmon.sh b/dsmon.sh index dbea095..225da7b 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -148,6 +148,7 @@ CHECK(){ if [ -n "$NTS" ]; then echo "'$host' = '$NTS'" 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++)) fi