in reply to Problem with switching log files

You should probably print out the path on the line before you try to create the file. Make sure nothing screwy is going on, like the $FILE_NUMBER variable resetting and having you try to open the same file simultaneously on two separate threads (or whatever).

Replies are listed 'Best First'.
Re^2: Problem with switching log files
by ice_ice_ice (Initiate) on Dec 27, 2011 at 20:52 UTC
    Thanks guys for your help and hints. Problem was solved. The directory should have permission 777 not 775 :) so simple solution ;)