title: Unable to execute cell -script using java process executor
body: <p>I am trying to run shell script using java process executor.It works fine for me when i am using it for PING command , however unable to produce any impact over DUMP command. Here is the code which one i am trying.</p>
  
  <pre><code>  import java.io.BufferedReader;
    import java.io.InputStreamReader;
  
    public class ExecuteShellComand {
  
  public static void main(String[] args) {
  
      ExecuteShellComand obj = new ExecuteShellComand();
  
      String domainName = "www.google.com";
      String command1 = "ping -c 3 " + domainName;
      String command = "pg_dump -U kalculate Kalculate_4.1_final -f testfinal11.sql";
      String output = obj.executeCommand(command1);
      obj.executeCommand(command);
      System.out.println(output);
  
  }
  
  private String executeCommand(String command) {
  
      StringBuffer output = new StringBuffer();
  
      Process p;
      try {
          p = Runtime.getRuntime().exec(command);
          p.waitFor();
          BufferedReader reader = 
                          new BufferedReader(new InputStreamReader(p.getInputStream()));
  
                      String line = "";           
          while ((line = reader.readLine())!= null) {
              output.append(line + "\n");
          }
  
      } catch (Exception e) {
          e.printStackTrace();
      }
  
      return output.toString();
  
     }
  
  }
  </code></pre>
  
  <p>Here <code>obj.executeCommand(command);</code> is not making any impact.Any help will be appreciable.</p>