I have a Perl script that will execute three applications. They all have different exit codes.
The state of the first application exit code is 1. The application exited normally without any problems. (Successful)
The second application exit code is 99. However, the application exited normally without any problems. (Successful)
Finally, the third application exit exit code is 0. The same with the first and second, the application came out fine, without any problems. (Successful)
Note. Already shift the status of the 8-bit exit code to the right.
The question is, does the exit code status always return to 0 if it is launched successfully?
Please, not a harsh comment, I'm just confused. Please advice.
source
share