挣扎了一个小时...... java代码:
ULogger.info("throwing out 666!");
System.exit(666);
bash 包装器:
eval ${COMMAND_TO_RUN}
ret_code=$?
printf "error code : [%d]" ${ret_code}
输出:
[2012-11-30 15:20:12,971][INFO ] throwing out 666!
error code : [0]
这是怎么回事?谢谢...
[编辑]
${COMMAND_TO_RUN}
是_
((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