title: Shell: Run PHP script and wait for it to finish
body: <p>I need to write shell script, which will run PHP script every x seconds. And I need to be sure, that previous execution has finished.</p>
  
  <p>Is it possible to run PHP script from shell and (for example) wait for "done" message from PHP?</p>