diff --git a/inc/status.new.inc b/inc/status.new.inc index c229e4ab..e0c7ce14 100755 --- a/inc/status.new.inc +++ b/inc/status.new.inc @@ -132,9 +132,17 @@ STATUSNEW(){ ######################## for NTYPE in "${ntypesel[@]}"; do - STATUS_NODE ${NTYPE} > ${NM_TMPFOLDER}/status-check.${NTYPE}.running & - + done + for NTYPE in "${ntypesel[@]}"; do + completed=false + until [ "${completed}" == "true" ]; do + if [ -f ${NM_TMPFOLDER}/status-check.${NTYPE}.done ]; then + completed=true + echo -e "$(cat ${NM_TMPFOLDER}/status-check.${NTYPE}.running)" + rm -f ${NM_TMPFOLDER}/status-check.${NTYPE}.* + if + done done fi