I have an SSH execute command action that execute perl script on CentOS Linux server. The perl script returned with exit code 0 when successful and other positive integers when error occurs. Hence I configured the action with Expected Exit Status = 0 and Fail on Unexpected Status = True. However when the script returns 1 or other integers the action still considered as successful. I can see in the log a line reporting the exit status and the last line says :Attempting to get exit code of last command." Looks like a bug to me, the "Fail on Unexpected Status" option doesn't seem to be doing what it says it should. Although I noticed that this option is not explained in the Help guide.
We’ll look into this, I know when Jason was working on this a while back it’s not easy to achieve but it was working. What shell did you specify on the action?
I tried running perl and shell script, both same behavior. Just have a single line with exit code other than 0 in the script. The command is always considered as exit with 0.
Would you be able to send us a short Perl script which simulates the returning of the exit code of 1. The reason I ask for this is to confirm that I am testing exactly what your experiencing.