How to handle return codes from Shell scripts

 0 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
db
New Member
Posts: 1
New Member
    My shell script will either return 0 or 1, I want this value to be validated inside the branch to email for failure otherwise end.  It seems that PFI terminates when the shell command returns 1, therefor my email never gets sent out alerting users of failures.  Is there a work around for this ?