I am calling a python script from within a shell script. The python script returns error codes in case of failures.
How do I handle these error codes in shell script and exit it when necessary?
I am calling a python script from within a shell script. The python script returns error codes in case of failures.
How do I handle these error codes in shell script and exit it when necessary?
The exit code of last command is contained in
$?
.Use below pseudo code:
You mean the
$?
variable?Please use logic below to process script execution result: