Update dsmon.sh
This commit is contained in:
2
dsmon.sh
2
dsmon.sh
@@ -156,10 +156,12 @@ CHECK(){
|
|||||||
done
|
done
|
||||||
[ "${1}" != "report" ] && echo -e "\r\033[2K${idsCL[LightCyan]}${MSG}${spc}: ${idsCL[LightGreen]}Done${idsCL[Default]}"
|
[ "${1}" != "report" ] && echo -e "\r\033[2K${idsCL[LightCyan]}${MSG}${spc}: ${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
|
echo
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
nc_count=0; lc_count=0; completed=false; scanstart=$(date +%s)
|
nc_count=0; lc_count=0; completed=false; scanstart=$(date +%s)
|
||||||
until [ "${completed}" == "true" ]; do
|
until [ "${completed}" == "true" ]; do
|
||||||
until [ $(ls /tmp/dscheck.*.done 2>/dev/null | wc -l) -gt 0 ]; do tmp=tmp; done
|
until [ $(ls /tmp/dscheck.*.done 2>/dev/null | wc -l) -gt 0 ]; do tmp=tmp; done
|
||||||
|
echo -e "\r"
|
||||||
for host in /tmp/dscheck.*.done; do
|
for host in /tmp/dscheck.*.done; do
|
||||||
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
|
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
|
||||||
if [ -n "$NTS" ]; then
|
if [ -n "$NTS" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user