diff --git a/dsmon.sh b/dsmon.sh index bc62834..7c22c20 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -148,6 +148,7 @@ CHECK(){ NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${host}") if [ "${NTS}" != "*" ]; then echo -e "$(cat /tmp/dscheck.${NTS}.results)" + cp -f /tmp/dscheck.${NTS}.results /tmp/${NTS}.result rm -f /tmp/dscheck.${NTS}.* ((nc_count++)) fi