title: ProcessBuilder Does Not Output Anything
body: <p>I run a shell command with Process Builder:</p>
  
  <pre><code>try {
      ProcessBuilder lmBuilder = new ProcessBuilder("/home/istanbul/srilm/bin/i686-m64/ngram-count", "-text", modelPath, "-order", "3", "-lm", modelOutputPath);
      lmBuilder.redirectErrorStream();
      final Process lmProcess = lmBuilder.start();
      int result = lmProcess.waitFor(); //result becomes 0
      InputStream is = lmProcess.getInputStream();
      InputStreamReader isr = new InputStreamReader(is);
      BufferedReader br = new BufferedReader(isr);
  
      String line;
      while ((line = br.readLine()) != null) {
          System.out.println(line);
      }
  
  } catch (IOException | InterruptedException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>When I check the output of the command I see that it works properly. When I run it via shell I see that output:</p>
  
  <pre><code>warning: discount coeff 1 is out of range: 0
  warning: discount coeff 7 is out of range: 1.06876
  warning: discount coeff 7 is out of range: 2.09945
  </code></pre>
  
  <p>However when I run it <strong>via process builder I cannot see any output</strong>.</p>
  
  <p>Any ideas?</p>