Skip to content

Latest commit

 

History

History
24 lines (11 loc) · 736 Bytes

File metadata and controls

24 lines (11 loc) · 736 Bytes

Exit Codes

  • Lets understand Exit-Codes

  • In this lecture we will understand the Exit-Codes and different types of Exit Codes.

    e0

    e1

  • Command to check the exit code of the the last executed command is echo $?

  • For example to check the status of command rocket-status use

    rs

  • If the launch of the rocket is successfull then exit code should be zero and if it fails it should be a non-zero value

  • 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.

    exit