title: start and monitoring a process inside shell script for completion
body: <p>I have a simple shell script whose also is below:</p>
  
  <pre><code>#!/usr/bin/sh
  
  echo "starting the process which is a c++ process which does some database action for around 30 minutes"
  #this below process should be run in the background
  &lt;binary name&gt; &lt;arg1&gt; &lt;arg2&gt;
  
  exit
  </code></pre>
  
  <p>Now what I want is to monitor and display the status information of the process.
  I don't want to go deep into its functionality.  Since I know that the process will complete in 30 minutes, I want to show to the user that 3.3% is completed for every 1 min and also check whether the process is running in the background and finally if the process is completed I want to display that it is completed.</p>
  
  <p>could anybody please help me?</p>