I need my autosys job to send an email alert when java batch file configured to it end up with errorS. Unfortunately though my job is failing with error in log file autosys status is success and we are not getting any alerts. Please help me to figure out this.
Thanks for the reply munkerholler, Cant share the code as it is illegal for me share the code. but I can say this is normal jdbc code to connect to a DB. and we have given a wrong password in config file to see if autosys fails with status failed. but it is not happening.
that aside, but with the dialog in the stackoverflow request, it appears that command: XXXXXXXX.sh is exiting with a 0 (success) status.
this needs to exit with a non-zero status for the alarm_if_fail: y
condition to be met such that an alarm is thrown.
you need to fix the check in your script that detects an error in the logs such that XXXXXXXX.sh exits with a non zero status.
I will not respond further whilst you have the stackoverflow request open