CGI Not opening log file

I have the following CGI file. But it is not oprning the log files and it does not write in the log file .. why ?

print "Content-type: text/html\n\n";
print "<html><body><br></body></html>\n";
 
print "Starting";
print "123";
open(LOG,">>call.log");
print LOG "-----------------------------------------------------------------------\n";
print LOG "\n";
close(LOG);

VarshiniAsked:
Who is Participating?
 
ozoCommented:
use CGI::Carp qw(fatalsToBrowser);

open(LOG,">>call.log") or die "Can't open call.log because $!";
0
 
VarshiniAuthor Commented:
whenever i execute the file i am getting the following error.
I am using the cgi file in asp.net application ...
%1 is not a valid Win32 application.
0
 
VarshiniAuthor Commented:
i got the following error when i use
use CGI::Carp qw(fatalsToBrowser);

open(LOG,">>call.log") or die "Can't open call.log because $!";


Can't open call.log because Permission denied at
0
 
r4aadtCommented:
Sounds like you just need to change permission on call.log to be wide open.
0
 
VarshiniAuthor Commented:
h
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.