batch trace shell script for processing failure