Python os.EX_UNAVAILABLE Constant
Example
Exit code if specified service is unavailable:
#Import os Library
import os
# Exit code
print(os._exit(os.EX_UNAVAILABLE))
Try it Yourself »
Definition and Usage
The os.EX_UNAVAILABLE
exit code represents that a specified service is unavailable.
Note: Available only on UNIX platforms.
Syntax
os.EX_UNAVAILABLE
Technical Details
Return Value: | None |
---|---|
Python Version: | 2.3 |