Sample Header Ad - 728x90

block in bash so that no more than 5 child processes are running at a time?

0 votes
0 answers
45 views
Is there a way to block in bash, something like this: function do_work { wait -c 5 ### wait until 5 or fewer cp's are running now do whatever else you wanted }
Asked by Alexander Mills (10734 rep)
Sep 29, 2022, 07:33 AM