Report question

Question: How to capture the exit status of a shell command in Java?