I have written a shell script to call a java program say load_id.sh .This sh script indeed is executed implicitly in other sh script which calls 2 more sh scripts one by one. I need to check if the load_id.sh (which calls java program) is executed successfully only then continue with other shell script.
Please suggest how to check if the load_id.sh has run successfully.
I have a few to questions pose in response first:-
Is this homework/assignment? There are specific forums for these.
What have you tried so far?
What output/errors do you get?
Most importantly, What have you tried so far?
You are probably looking for the return code or a message from the java. What does it do when it exits? Can you show us a sample of the java? (within CODE tags)
We're all here to learn and getting the relevant information will help us all.