suppose I want to run a few (say, three) programs at once, like thisprogram1 & program2 & program3 &if I want to know their pid's, I think the best way is to store them, like thisprogram1 &pid1=$!program2 &pid2=$!...But now, what if I want to know if they have ended and if so, what value they returned? Something like this:if [ program1 has ended ]; then    do something with its return valuefiAny help will be appreciated
Running multiple programs in the background and checking their return value
shell;scripting;background process