I think this isn't the answer because I think (which I shd have spelled out) the current directory is /home/main/cgi-bin. The reason I'm a bit equivocal is that I do not explicitly set it to be the current directory; it's jus the directory where my script resides. Is that the problem? Why?