title: Stop terminal command (CTRL + Z)
body: <p>I have a terminal command which is shown below. </p>
  
  <p><code>instruments -t Activity -D /Users/admin/Desktop/woah.trace -w 878dbd88101f2db8d85ddc8e7ecbc68e45e9f9e7</code></p>
  
  <p>This command executes indefinitely, collecting instrument data and the way to end the execution in the terminal is by pressing <kbd>CTRL</kbd>+<kbd>Z</kbd>.</p>
  
  <p>I can run my command via Java using process (<code>Runtime.getRuntime().exec(command);</code>) and it works fine. </p>
  
  <p>I just don't know how to stop the execution. Is there a special parameter to replace <kbd>CTRL</kbd>+<kbd>Z</kbd> in Java?</p>
  
  <p>Thanks</p>