title: Error Handling for executing multiple sub shell scripts in parallel
body: <p>I have few child shell scripts which needs to be run in parallel. To run these scripts in parallel I am using the following command</p>
  
  <pre><code>sh abc.sh "Hi" &amp; sleep 60 &amp; sh abc.sh "Hello" &amp; sleep 60 &amp; sh abc.sh "how";
  var_err=$?
  if [ $var_err != 0 ]; then
              flag=FAIL
              MASTER_RUN_STATUS_UPDATE "$flag"
              break;
          else
              flag=SUCCESS
              MASTER_RUN_STATUS_UPDATE "$flag"
          fi
  </code></pre>
  
  <p>How to handle errors for each of the above subshell scripts. I want to return the status as success if all the 3 subshell scripts are succeeded and vice versa for fail. Each subshell should be executed after 100s. However using the above syntax, I can only get the status of the last executed process.</p>
  
  <p>Please help me how to achieve this.</p>
  
  <p>Note: I dont have GNU parallel</p>
  
  <p>Thanks in advance</p>