If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
assuming the '/path2calledScript' returns the proper stutus upon its exit.
Code:
#!/bin/ksh
echo 'this is a calling script'
/path2calledScript
calledScriptStatus="${?}"
if [ "${calledScriptStatus}" -ne 0 ]; then
exit "${calledScriptStatus}"
fi;
.....