Intercept output from a running Java program
<p>Is it possible to grab / intercept the output from an already running Java program?</p>

<p>This is my situation: I'm running a program which takes some hours to finish. So I start it and let the computer do it's work. I can login on the computer running the program with SSH and see the it running with <strong>ps</strong>, but I would like to intercept the output which is written to the console.</p>

<p>Is there any way to do this?</p>

<p>Do I need to provide extra information?</p>
