This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm using a Java application which runs a shell script in Unix server for printing . In shell script I want to set the page length and remove the file if print was successful. My code is as follows .
I have tried with but here file is not getting deleted after printing. Hence i went for using if / else .
My question is if any exception occurs in shell script(OUT returns value other than 0) , how to return that value to my calling program in Java .
"Learning is a Culture where your Eagerness & Curiosity plays a major Role".