I have a bash script that launches >20 subprocesses (functions launched with & in background) and want to include a progress indicator that tells the user how many of those subprocesses are already running.The problem is that those subprocesses need quite some time to boot up (~20 seconds, depending on the network). Is there a way that I could count the number of subprocesses that have already successfully booted?
How to count subprocesses that reached certain state
bash;shell script;function