title: how to wait for first command to finish?
body: <p>I am writing a script in bash, which is calling two bash scripts internally. Where first script includes different tests which runs in background and second script print results of first script.</p>
  
  <p>When I run these two scripts one after other, sometimes, second script get executed before first script ends Which prints wrong results. </p>
  
  <p>I am running both scripts with source command. Any better suggestions?</p>
  
  <pre><code>source ../../st_new.sh -basedir $STRESS_PATH -instances $INSTANCES 
  source ../../results.sh
  </code></pre>