mcastle@dl-mcastle[09:40am]mrc/NWbuild/bin(1618) sh /opt/app_home/ant/1.5.1/noarch/bin/ant -logfile ../logs/log.file Cannot write on the specified log file. Make sure the path exists and you have write permissions. mcastle@dl-mcastle[09:41am]mrc/NWbuild/bin(1619) echo $? 0 Should set the exit code to 1 at least. Actually, might not be a bad idea to audit all command line oriented failures just to be paranoid.
All command line problem should lead to a return code of 1 now.