-
Lets Understand Exit-Codes
-
In this lecture we will understand the Exit-Codes and different types of Exit Codes.
-
Command to check the exit code of the the last executed command is
echo $? -
For example to check the status of command
rocket-statususe -
If the launch of the rocket is successfull then exit code should be
zeroand if it fails it should be anon-zerovalue -
If the launch of the rocket is failed then script should return 1 this can be modified in the script to retrun a exit-code.