title: JSP to run OS commands
body: <p>Can I use JSP to run OS commands ?</p>
  
  <p>I have done similar thing in PHP and works fine using the shell_exec syntax.</p>
  
  <p>Is it possible to do it in JSP ?</p>
  
  <p>I was looking for something similar like this . </p>
  
  <pre><code>&lt;?php
  $output = shell_exec('ls -lart');
  echo "&lt;pre&gt;$output&lt;/pre&gt;";
  ?&gt;
  </code></pre>