The method waitFor() returns an integer value which is the return code. The value 0 indicates normal termination. But what are the meanings of other return codes? I am getting an exit value 11. What does that mean? And where all the exit value codes are documented?
-
That depends on the process you are running. You need to consult the document of the particular program. There is no general standard.kiheru– kiheru2013-08-02 11:14:52 +00:00Commented Aug 2, 2013 at 11:14
-
This depends on the process you have executed. The return code from that process is returned here.Matthias– Matthias2013-08-02 11:15:24 +00:00Commented Aug 2, 2013 at 11:15
-
Which program is this?tbodt– tbodt2013-08-02 11:16:46 +00:00Commented Aug 2, 2013 at 11:16
Add a comment
|
5 Answers
Every application defines it's own exit codes. E.g. you have to look up the documentation of the application that you started using java.lang.Process. The only common thing they all have is that any other value than 0 is an error.
In the unix world on the other hand there are certain conventions, that many main stream utilities follow, but there are no guarantees.