Update dsmon.sh
This commit is contained in:
2
dsmon.sh
2
dsmon.sh
@@ -92,7 +92,6 @@ CHECK(){
|
|||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
|
|
||||||
C_CW=40
|
C_CW=40
|
||||||
shopt -s nullglob
|
|
||||||
|
|
||||||
declare -A host_ip
|
declare -A host_ip
|
||||||
declare -A host_name
|
declare -A host_name
|
||||||
@@ -138,6 +137,7 @@ CHECK(){
|
|||||||
done
|
done
|
||||||
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
nc_count=0; completed=false; scanstart=$(date +%s)
|
nc_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
|
||||||
|
|||||||
Reference in New Issue
Block a user