title: Run linux command from in spring boot war file
body: <p>The first question I'm asking myself is. Is it even possible to run Linux commands in a spring boot war file?</p>
  
  <p>If you use this in putty it works:</p>
  
  <pre><code>/usr/local/bin/wkhtmltopdf http://www.yahoo.com /tmp/yahoo.pdf
  </code></pre>
  
  <p>This is what I'm trying to do in my application:
  This does not create a pdf and I don't now what the output is if I run this because it is on a sever as war file.</p>
  
  <p>I know this works on Windows when testing on localhost.</p>
  
  <pre><code>@RequestMapping(value = "/testlinux", method = RequestMethod.POST)
  public void testlinux() throws IOException {
  
      try {
  
          ProcessBuilder pb = new ProcessBuilder("/usr/local/bin/wkhtmltopdf http://www.yahoo.com /tmp/yahoo.pdf");
  
          pb.start();
  
      } catch (Exception e) {
          System.out.println(e);
      }
  </code></pre>
  
  <p>Any idea's or thoughts about this?</p>