Script Exit Code

msample
Contributor II

Does the script exit code: 0 mean that the policy was not applied? And does the script exit code: 1 mean that the policy was applied?

1 ACCEPTED SOLUTION

rderewianko
Valued Contributor II

Exit 0 = Script Executed successfully Exit 1 = Script Executed unsuccessfully (there we're errors or problems)

View solution in original post

3 REPLIES 3

rderewianko
Valued Contributor II

Exit 0 = Script Executed successfully Exit 1 = Script Executed unsuccessfully (there we're errors or problems)

mm2270
Legendary Contributor III

You may want to look up some guides on bash script exit codes, like here: http://steve-parker.org/sh/exitcodes.shtml
There are others too.

Exit code 0 almost always means it was successful. Anything other than 0 means it failed.

msample
Contributor II

Thanks, Ross...thanks, Mike. It's just the reverse of what I had thought.