See my web site for information on me and what I do. However, I don’t write everything here: guest authors deserve full responsibility and credit for their pages.
Blog rules:
- Carefully written
- Small essays
- Preferably related to science, technology. or language.
- Any politics has to be carefully argued and supported.
- No pure opinion
- Nothing that is predominantly an advert.
2 replies on “About”
Hi,
Your solution on (http://kochanski.org/blog/?p=326) can be done this way too:
#!/bin/bash
cores=4
for x in whatever
do
if test `jobs | wc -l` -lt $cores
then
some-script.sh $x &
echo “processing $x …”
else
sleep 0.1
fi
done
wait
Greetings,
Nabi
The Netherlands
Sorry no, here is an correction:
cores=4
for x in whatever
do
while test `jobs | wc -l` -ge $cores
do
sleep 0.1
done
echo “processing $x …”
some-script.sh $x &
done
wait