I have a script that execute some process and return a number based on the job status. This script is triggered on the back background.
i.e.
ksh -x myscript.sh 20150102 &
My question is how can I get the return code of the background process? Is there a way to get return code like for exit code $?
wait
.