... echo $(date +%Y-%m-%d-%H-%M-%S)" fastrestart" >> $res_log sleep 3 res=$(get_check_per $1) echo $try_times'testing .... ' fi done try_times=5 if [[ $res == "0" ]] then ps aux |grep -E "xs-[indexd|searched]" | awk '{...