title: Java - System process listener
body: <p>Is there any way I can get a system process and listen to it so I can get what it's doing? An example of what Im looking for is this:</p>
  
  <pre><code>RunningProcess proc = new RunningProcess("notepad.exe");
  ProcListener procListener = new ProcListener(proc);
  </code></pre>
  
  <p>Listener class example:</p>
  
  <pre><code>public class ProcListener implements ProcessListener {
  
      public ProcListener(...) {
  
      }
  
      @Override 
      public void started() {
  
      }
  
      @Override 
      public void terminated() {
  
      }
  
      @Override 
      public void ioOperation(IOoperation iop){
  
      }
  
  }
  </code></pre>
  
  <p>Is there something like that? I haven't found yet.</p>