Link to home
Start Free TrialLog in
Avatar of ams7503
ams7503

asked on

checking $? value

I have written a build script which creates a bin directory and compiles java code.
I call this build.sh in another script,dailybuild.sh ,I would like to test that the script ran correctly.
For this I used $?, but this value is turning out to be 1 instead of 0 even though the build.sh is correctly running.?Basically what I want to test is that the contents of build.sh ran properly-ie the code was compiled properly.
Is there a way to test that it ran correctly?
Thanks
ASKER CERTIFIED SOLUTION
Avatar of FrivolousSam
FrivolousSam

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ams7503
ams7503

ASKER

Thank you for your help- by echoing stuff out I was able to figure out what was going wrong.