Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • 1
    The way I read the OP's question I took it to mean that they might want to launch different processes depending on which one finished. Yes the OP needs to use $! to populate the array (or other data structure) with the job details. I suspect your solution will not work for the same reason the OP had problems, nothing is calling one of the wait system calls so the processes are left in the process table. parallel might be a better solution.. Writing a Makefile (perhaps by a program) and using make -j3 or ksh93 with JOBMAX might also be better solutions, we don't have enough data. Commented Jun 28, 2021 at 17:03