Runtime.exec() return codes
843798Nov 10 2006 — edited Feb 21 2007running on SuSe and RH Linux...
I issued Runtime.getRuntime().exec("program") to launch "program". I waited for the return/exit code of the process from which I intentionally abnormally killed the process using "kill -9" giving me a return code value of 129. However if i run "program" directly in a shell console, and stop it using "kill -9", the exit code for this seems to give me value 137.
Can someone tell me why these exit codes differ from spawning "program" directly from a Linux shell console vs. using Java to exec the process?
Thanks.