title: passing command line argument to bash shell script which is called from the c++ program
body: <p>I am just calling the shell script from my c++ program.
  Shell script is executing successfully. But i am not able to receive the command line arguments passed to the shell script via c++ program.</p>
  
  <pre><code>#include&lt;iostream&gt;
  
  
      int main()
      {
         system(". script.sh a b v d d");
  
  
         return 0;
      }
  </code></pre>
  
  <p>SHELL</p>
  
  <pre><code>echo "start | $2 | $1 | $3"
  </code></pre>
  
  <p>O/P:</p>
  
  <pre><code>./a.out
  start |  |  |
  </code></pre>