title: Running a script in terminal from java
body: <p>I am running a script in a java program using:</p>
  
  <pre><code> Runtime.getRuntime().exec()
  </code></pre>
  
  <p>I am able to open the <strong>terminal application</strong> using this.</p>
  
  <p>If I give command to run the script. It's happening but I am not able to get the logs in the terminal. I am using MAC. I want to get the logs in the terminal.</p>