NOJIRA Darlene's tweaks to act-as script so it runs on Linux