title: execute and receive the output of mml command in c++
body: <p>i have an interface where i use to execute the mml command in my solaris unix like below:</p>
  
  <pre><code>&gt; eaw 0004
  &lt;RLTYP; 
  BSC SYSTEM TYPE DATA
  
  GSYSTYPE
  GSM1800
  
  END
  &lt;
  </code></pre>
  
  <p>As soon as i do <code>eaw &lt;name&gt;</code> on the command line.It will start an interface where in i can execute mml commands and i can see the output of those commands executed.</p>
  
  <p>My idea here is to parse the command output in c++.
  I can do away with some logic for parsing.But to start with How can get the command to be executed inside c++ ? Is there any predefined way to do this.
  This should be similar to executing sql queries inside c++.But we use other libraries to execute sql queries.I also donot want to run a shell script or create temporary files in between.</p>
  
  <p>what i want is to execute the command inside c++ and get the output and even that in c++.
  could anybody give me the right directions?</p>