This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Knowledge Base
- :
- Installer Exit Codes on Linux when using InstallAnywhere
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Installer Exit Codes on Linux when using InstallAnywhere
Installer Exit Codes on Linux when using InstallAnywhere
Summary
This article explains how to convert installer exit codes to the 0-255 range used on LinuxSynopsis
When retrieving installer exit codes on Linux, the exit code may not match with InstallAnywhere's documented Installer Exit Codes. This article explains how to convert the installer exit codes to the 0-255 range used on Linux.Discussion
When a program exits, it can return to the parent process a small amount of information about the cause of termination, using the exit status. This is a value between 0 and 255 that the exiting process passes as an argument to exit. The reason is due to the exit() function returning status & 0377 to the parent, or in other words, the least significant 8 bits.As a result, in order to convert the exit codes from the Installer Exit Codes article to the 0-255 range, you will need to perform modulo 256 on them. The following is a table mapping the converted exit codes for Linux:
Code |
Linux Code |
0 |
0 |
1 |
1 |
-1 |
255 |
1000 |
232 |
1001 |
233 |
2000 |
208 |
2001 |
209 |
2002 |
210 |
2003 |
211 |
2004 |
212 |
2005 |
213 |
2006 |
214 |
2009 |
217 |
3000 |
184 |
3001 |
185 |
3002 |
186 |
3003 |
187 |
3004 |
188 |
3005 |
189 |
3006 |
190 |
3007 |
191 |
3008 |
192 |
3009 |
193 |
4000 |
160 |
4001 |
161 |
5000 |
136 |
7000 |
88 |
8000 |
64 |
8001 |
65 |
8002 |
66 |
No ratings