Unix script, how to pass return code back to calling script(s)
Posted on 2013-01-02
I have 4 scripts called in succession, and need to pass the return code back from each called script to the calling script. How can I do that ? I have the return code, just don't know how to receive it in the calling script.
My_Calling_Script A, last step:
my_called_script.ksh $parm1 $parm2
(how do I receive back $return_code)
return $return_code (I'll be adding this new to my script)