我试图捕获perl脚本失败时的实际错误。它不会停止,下一个脚本会被触发。
已更新 Python脚本运行良好只有perl脚本有问题
if ! perl test.pl arg2 arg1 ;
then
echo "Error running test.pl in Preparing data for algorithm; rest of process stopped." >&2 >>$LOG_PATH/Perl_RUN_$TRACK_TIME
elif ! python themes.py;
then
echo "Error running themes.py rest of process stopped." >&2 >>$LOG_PATH/Python_RUN_$feed_name'_'$TRACK_TIME
elif ! python $SCRIPT_PATH/pre_survey_dt.py;
then
echo "Error running pre_survey_dt.py rest of process stopped." >&2 >>$LOG_PATH/Python_RUN_$TRACK_TIME
fi
请告知我在这里缺少的东西。