Controlling the Number of Background Jobs Running in the UNIX Shell
I have a problem when I run my bash command line scripts one by one, like:
./process.sh data1.txt ./process.sh data2.txt ... ./process.sh dataN.txt
What I would like to do is run them as background jobs, but you only have 10 runs at any given time. I can do this in a traditional programming language (very convenient with unions, wait style constructs), the question I have is how to do this using UNIX bash.
Thank.
+3
source to share