Jump to content

Recommended Posts

Posted

Boas

Ultimamente ao usar a shell quase sempre que faço exit, ha a indicaç~ao que a shell terminou com o estado x.

A quest~ao e que este x ja teve varios valores e n~ao apenas 1. POrtanto se alguem me poder dizer um site com os codigos de erro agradecia.

Cumps

Posted
Exit codes are a number between 0 and 256, which is returned by any Unix command when it returns control to its parent process.

Other numbers can be used, but these are treated modulo 255, so exit -10 is equivalent to exit 246, and exit 257 is equivalent to exit 1.

http://www.faqs.org/docs/abs/HTML/exitcodes.html#EXITCODESREF

http://www.faqs.org/docs/abs/HTML/exit-status.html

http://steve-parker.org/sh/exitcodes.shtml

Espero ter ajudado.

<3 life

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.