I have a list of processes triggered one after the other, in parallel. And, I need to know the exit code of all of these processes when they complete execution, without waiting for all of the processes to finish.
While status=$?; echo $status
would provide the exit code for the last command executed, how do I know the exit code of any completed process, knowing the process id?