Der System.exit-Rückkehrcode wird von bash eval nicht erkannt
Ich habe eine Stunde damit zu kämpfen ... Java-Code:
ULogger.info("throwing out 666!");
System.exit(666);
Bash Wrapper:
eval ${COMMAND_TO_RUN}
ret_code=$?
printf "error code : [%d]" ${ret_code}
Ausgabe:
[2012-11-30 15:20:12,971][INFO ] throwing out 666!
error code : [0]
Was ist hier los? Vielen Dank...
[BEARBEITEN]
Das${COMMAND_TO_RUN}
ist
((java -Xmx9000m -Dtoday_nix=20121128 -cp "/usr/lib/hadoop/conf" com.paypal.risk.ars.linking.task_fw.BaseRunnableProcess 3>&1 1>&2 2>&3) | tee /dev/tty) > batches_errors.log