title: Create system call to run my python code in jsp file
body: <p>What I'm trying to do is to create a jsp page that would call my Python code. I'm trying to call my Python code as a system function in jsp. I'm creating this page to make a cross domain call to this page from another jsp page.</p>
  
  <p>Can anyone tell me how can I make a system call for my Python code?
  I run the following command for the execution of my Python code in the terminal:</p>
  
  <pre><code>root@user:/folder # python p111.py
  </code></pre>
  
  <p>i tried the following code</p>
  
  <pre><code>&lt;HTML&gt;
  &lt;BODY&gt;
  Hello!  The time is now 
  &lt;script&gt;
  Process qq=Runtime.exec(new String[] { "./dsapce/webapps/jspui/p111.py", "p111.py", }, null, new File("./dsapce/webapps/jspui/p111.py"));
  qq.waitFor();
  &lt;/script&gt;
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>something not correct..</p>