I need to the following things to make sure my application server is
time=0 found=0 while [ $time -lt 1200 ]; do out=$(tail logfile) if [[ $out =~ specificString ]]; then found=1 break; fi let time++ sleep 1 done echo $found