Python os.WEXITSTATUS() – Get the integer argument used by the process in the exit(2) system call
Python os.WEXITSTATUS() Method The Python os.WEXITSTATUS() method is used to get the integer argument used by the process in the exit(2) system call if os.WIFEXITED(status) is True. If os.WIFEXITED(status) is False, the method returns a meaningless value. os.WEXITSTATUS Syntax os.WEXITSTATUS(status)…