Link to home
Start Free TrialLog in
Avatar of Varshini
Varshini

asked on

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);

ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Varshini
Varshini

ASKER

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.
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
h