Well, good luck with that. I'm pretty certain he won't answer you the next few days :smile:.
Sorry, was gone there for a while, saving the galaxy. Or on christmas holiday. One of these.
JohnO'Mullane the post is intended to point out that the "Job messenger" doesn't get triggered when you use "exit" in your shell script. Our Automic consultant said to this: "don't use "exit" in your scripts". I kinda take that as the official Automic statement, but I find it rather limiting.
From my tests (and Wolfgangs), using "exit" does
not prevent the parsing of exit codes. Something that exits with "exit 1"
should show up as ENDED_NOT_OK in Automic, and it did many times for me, in practice. So I don't
think that what I describe in the article is to blame.
But it's not entirely inconceivable that, under some circumstances, the lack of calls to the "job messenger"
might cause this, e.g. when using different shells, so
MatthiasSchelp is abolutely right in pointing out the possibility.
If you can still recreate the problem, and want to get to the bottom of it, you could use the trap approach I outlined further down in the post you linked. That way, you can "exit 1" and call the job messenger, so you could rule out whether the lack of a job messenger call is the culprit of the strange behaviour you saw.
Hope this helps.