Update dsmon.sh
This commit is contained in:
2
dsmon.sh
2
dsmon.sh
@@ -150,7 +150,7 @@ CHECK(){
|
|||||||
for hostname in "${hostnames_sort[@]}"; do
|
for hostname in "${hostnames_sort[@]}"; do
|
||||||
until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 12 ]; do tmp=tmp; done
|
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 &
|
||||||
stdbuf -oL -eL bash -c "/usr/local/bin/dsmon runcheck '${hostname}'" > /tmp/dscheck.${hostname}.results &
|
unbuffer bash -c "/usr/local/bin/dsmon runcheck '${hostname}'" > /tmp/dscheck.${hostname}.results &
|
||||||
done
|
done
|
||||||
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user