Thank you to all who responded. The problem was located in the line endings in the script files. I had prepared the scripts on my PC and transfered them via FTP. They went as binary because the extensions were not recognized as ASCII. It is interesting to note, however, that python correctly interpreted the files anyway, but neither Linux nor Apache did. Dave