Java equivalent of perror in C

Thursday, July 10, 2014

I hope to execute a bash script and obtain normal output or error message. I know for c we have erron or perror to get the number of exit code and the corresponding message. whether or not there is an equivalent for Java. Ifnot, how could we achive the same task as in c? thanks a lot!







http://ift.tt/1k9nlqW