Skip to main content
Solved

Script Exit Code

  • February 20, 2015
  • 3 replies
  • 16 views

msample
Forum|alt.badge.img+9

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?

Best answer by rderewianko

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

3 replies

Forum|alt.badge.img+18
  • Honored Contributor
  • Answer
  • February 20, 2015

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


mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • February 20, 2015

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
Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • February 20, 2015

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