About


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:

  1. Carefully written
  2. Small essays
  3. Preferably related to science, technology. or language.
  4. Any politics has to be carefully argued and supported.
  5. No pure opinion
  6. Nothing that is predominantly an advert.

2 responses to “About”

  1. 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

  2. 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

Leave a Reply

Your email address will not be published. Required fields are marked *