title: run separate background process on java web server
body: <p>Basically I want to use a jsp web page, so in Java, to run(manager) different background process (could be anything that runs) on a linux server.</p>
  
  <p>They need to be run as different user than the web itself.</p>
  
  <p>I wonder what options do I have?</p>
  
  <hr>
  
  <p>I just found out that </p>
  
  <pre><code>Runtime rt = Runtime.getRuntime();
  Process proc = rt.exec("linux command");
  </code></pre>
  
  <p>may work. </p>
  
  <p>But I don't know whether the (child?) process just started will be completely detached from the java servlet process? And is it possible to run it under different account?</p>