I'm developing a script that spawns many background processes that will be executing concurrently and need to check the exit status of each spawned process after it terminates. After starting the background process I can get the pid from $! which I can store in an associative array but how do I check on the status and exit status of the pid? I suppose I should ask if this is even possible?
Thanks,
twk