in reply to wont run for long with strict.

Well I can't see any problems on those lines that you mention. The only error I see is on line 146. You are not ending your statement. (This may just be a copy and past problem.)

Also I have been running it for a few hours and it has been fine, my best advice would be to check your /var/logs/ directory and see if it is writing a log entry when it fails. (It probably is)

How long does it run before it fails? If it is months ... then maybe there is a memory problem. What kind of system does this run on?

All in all, need more info to find the problem. The code is syntacically (sp?) ok.

- f o o g o d