Update dsmon.sh
This commit is contained in:
5
dsmon.sh
5
dsmon.sh
@@ -147,7 +147,9 @@ CHECK(){
|
||||
fi
|
||||
for hostname in "${hostnames_sort[@]}"; do
|
||||
until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 12 ]; do tmp=tmp; done
|
||||
RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results &
|
||||
# RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results &
|
||||
( RUN_CHECK "${hostname}"; echo ) | tee "/tmp/dscheck.${hostname}.results" > /dev/null &
|
||||
|
||||
done
|
||||
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
||||
|
||||
@@ -316,7 +318,6 @@ ${DRIVE} : ${DRIVEINFO_FREE[$DRIVE]}GB out of ${DRIVEINFO_TOT[$DRIVE]}GB Free ($
|
||||
fi
|
||||
sleep 0.001s
|
||||
mv /tmp/dscheck.${hostname}.running /tmp/dscheck.${hostname}.done
|
||||
fflush
|
||||
}
|
||||
|
||||
SETUPSSH(){
|
||||
|
||||
Reference in New Issue
Block a user