Very basic stuff. Every process should have exit return codes
+1
I also needed this in the past, and had to use other lang as alternative.