title: LInux replace sleep calls with process status check
body: <p>Linux bash commend:</p>
  
  <p>I have .sh scripts as follows which has couple of sleep calls, is there a way i can replace  sleep calls b/c sleep time may not be accurate, i want to check process running time and continue once previous process finish.</p>
  
  <pre><code>./deploy.sh
  sleep 60
  ./stop-tomcat.sh
  sleep 60
  ./start-tomcat.sh stop
  </code></pre>
  
  <p>Help appreciated.</p>