title: Shell function to tail a log file for a specific string for a specific time
body: <p>I need to the following things to make sure my application server is </p>
  
  <ol>
  <li>Tail a log file for a specific string</li>
  <li>Remain blocked until that string is printed</li>
  <li>However if the string is not printed for about 20 mins quit and throw and exception message like "Server took more that 20 mins to be up"</li>
  <li>If string is printed in the log file quit the loop and proceed.</li>
  </ol>
  
  <p>Is there a way to include time outs in a while loop ? </p>