Wednesday, 25 December 2013

Autosys- If jobs fails but its still successs in autosys.

If you have situation where your autosys calls any Shell script and it gets failed but still it says success in autosys dashboard, then you need to check exit statement in shell script (any code other that 0 autosys counts as failure)

e.g.

If [ expression]; then
        echo "Job failed"
        exit 1
else
        echo "Job success"
        exit 0
fi.

No comments:

Post a Comment