-3

How can I view the status of a background process that was created by using the "&" command? I ran a Java program using the "java program_name" command, and I just tacked on the "&" sign. The process went to the background, and the process ID number was generated. I have the process ID number, and I can see it as an active process when I use the "ps" command. However, I am not sure if the Java code needed more memory, and it threw an exception or something.

Thanks a lot in advance!

4

1 回答 1

1

我认为最安全的方法是将 stderr 和 stdout 重定向到一个文件,然后在那里查看发生了什么。

java dave >results.txt 2>&1

更多细节在这里

于 2013-06-26T06:23:35.913 回答