title: How to run a shell from JSP?
body: <p>My question is self explanatory. I want to run a shell, that's calling a procedure, from a JSP using a button.</p>
  
  <p>The procedure is</p>
  
  <pre><code>CREATE OR REPLACE PROCEDURE DEMO_PRC (dist IN variable,mrno IN variable,
  yr IN variable,flags OUT number)
  IS
  begin
  flags:=0;
  // CODE THAT GENERATES A UTIL.....
  flags:=1;
  end;
  /
  </code></pre>
  
  <p>And the shell is:</p>
  
  <pre><code>sqlplus demo_user/123456@demo
  var a NUMBER(4);
  exec DEMO_PRC($1,$2,,$3,:a);
  print a;
  </code></pre>
  
  <p>Named it <code>dist.sh</code> and it's run in command line as:</p>
  
  <pre><code>dist.sh 3 1937 10
  </code></pre>
  
  <p>But I want to run it from a JSP when I click a button. But I don't know the syntax to run shell(.sh) from JSP.</p>