Hi - I am modifying someone else's code for test automation. Basically the script runs as a cronjob on a client machine. Everytime it starts it creates a lockfile (if one does not already exist) and whenever it exits, it releases the lock file. It is important to note that nowhere is a bare "exit" except in the releaseLock() sub. The problem I am having is that on occasion the script will simply exit for no reason. It does not release the lock so I know that it is not exiting properly but literally dying. This happens so sporadically that I can't give much more information. Can anyone suggest reasons why this might happen? I've tried to reproduce it by running the script manually or in a debugger but have not yet succeeded. Any info would be most appreciated - I don't have much hair left to pull out.