Pentaho generic error handling script Pentaho generic error handling script shell shell

Pentaho generic error handling script


Try setting the level to Error. By this way, only error messages would be written to log file. Also, use -log option. Also, instead of checking return code of kitchen.sh, check whether log file is empty.

OUTDIR=/pentaho/spoon/data-integration/Backup/FCP_DEL_ALL.outv_jobfile=/pentaho/spoon/data-integration/production_reports/XYZ.kjb/pentaho/spoon/data-integration/kitchen.sh \-file="$v_jobfile" -level=Error -log="$OUT_DIR"if [ -z "$OUTDIR" ];thenecho "The Program Completed Successfully(KAAS) :-" >> $OUTDIRelsemail -s "TRF NAME ERROR" mick.vanhulst@gmail.com -c mick.vanhulst@gmail.com < /pentaho/spoon/data-integration/Backup/FCP_DEL_ALL.outfi