Hi all,
I have a shell that kicks off several sub-shells and make them run parallelly, like:
shell1.sh &
shell2.sh &
shell2.sh &
...
However, since all sub-shells run parallely, the parent shell finished right after it's submitted, like:
$ parent.sh &
$ [2] + Done parant.sh &
$
Though sub-shells are still runing.
Is it possible to make the parent.sh finishes only after all its sub-shells finished and still let the sub-shell runs parallely?