Are you writing your logfile locally? If not, try a local log file to minimize possible network issues within your script.


You speak of random errors. What lines and what errors?


This seems to be part of a larger script. Have you been able to isolate just this code and execute it manually to reproduc the errors?
_________________________
Home page: http://www.kixhelp.com/hb/