Hi,We have recently manually removed Teamsite from our Dev box and installed 6.7.2 SP2. We are facing problem with log4perl which we use for logging. We have restored all the 'iw-home' code and activated the store. We have cgi callouts in DCTs. These CGI scripts use log4perl. Now when we hit the buttons in the DCT, the CGIs are being called but the script ends pre-maturely because it is not able to log info in the proper log.The script is trying to open a different log rather than the one mentioned in the script. Although if I run the script from command line, the script is putting info in the correct log. The error.log shows :Cannot write to '/iw-logs/app/generate_properties.ipl.log': Permission denied at /iw-home/iw-perl/vendor/lib/Log/Dispatch/File.pm line 86.The logs are stored in /iw-logs/app dir. It seems like logger is trying to open every log in this dirrectory. After seeing the logname in error.log, if I change its permission to 777, the logger seems to got to a different log when I try it next time.Its happening with all the CGI callouts. Please helpRegards,Ankit
sub debug { my $msg = shift; if (open(OUT, '>>', "/tmp/dbg.txt")) { print OUT "$msg\n"; close(OUT); } else { warn("$0: $msg"); }}
debug("....");