Skip to main content
Solved

Script Exit Code

  • February 20, 2015
  • 3 replies
  • 0 views

msample
Forum|alt.badge.img+9
  • Valued Contributor
  • 65 replies

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)

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+18
  • Honored Contributor
  • 486 replies
  • 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+16
  • Legendary Contributor
  • 7880 replies
  • 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
  • 65 replies
  • February 20, 2015

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings