title: I'm to use linux command in jsp... but page is infinity loading
body: <p>my source is below</p>
  
  <pre><code>&lt;%@ page language="java"
  import= "java.io.*,java.util.*" 
  contentType="text/html;charset=EUC-KR" session="false" 
  %&gt;
  
  &lt;html&gt;
  &lt;%  
  try{
  Process ps = null;
  
  ps = Runtime.getRuntime().exec(new String[]{"su","ec2-user"});
  ps.waitFor();
  
  ps = Runtime.getRuntime().exec(new String[]{"cd"});
  ps.waitFor();
  
  ps = Runtime.getRuntime().exec(new String[]{"mkdir","/home/ec2-user/hello"});
  ps.waitFor();
  
  }catch(IOException ie){
    ie.printStackTrace();
  }catch(Exception e){
    e.printStackTrace();
  }
  %&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>when it is executed, page is infinity loading.</p>
  
  <p>why can't use this command ? </p>
  
  <p>ps = Runtime.getRuntime().exec(new String[]{"su","ec2-user"});</p>