title: Execute external command
body: <p>I do not know whether it is a Scala or Play! question. I want to execute some external command from my Play application, get the output from the command and show a report to user based on the command output. Can anyone help?</p>
  
  <p>For example, when I enter <em>my-command</em> from shell it shows output like below, which I want to capture and show in web:</p>
  
  <pre><code>Id    Name   IP
  ====================
  1     A      x.y.z.a
  2     B      p.q.r.s
  </code></pre>
  
  <p>Please, do not worry about format and parsing of the output. Functionally, I am looking something like PHP <em>exec</em>. I know about java <strong>Runtime.getRuntime().exec("command")</strong> but is there any Scala/Play version to serve the purpose?</p>