Here's the code:
#!/usr/bin/perl -wT
use CGI qw/:standard/;
use CGI::Cookie;
%cookies = fetch CGI::Cookie;
my $emailCookie = $cookies{'peiEmail'}->value;
my $ipCookie = $cookies{'peiIP'}->value;
my $fileName = substr $ENV{"QUERY_STRING"},9;
my $fileLoc = ' . $fileName;
my $timeStamp = 'TODAY';
$logEntry = $emailCookie . '|' . $ipCookie . '|' . $timeStamp . '|' . $fileName . "\n";
open (LOG, ">>ftpLog.txt");
flock (LOG, 2);
print LOG "$logEntry";
close (LOG);
Here's the error messages:
flock() on closed filehandle LOG at /var/print() on closed filehandle LOG at /var/
What gives?
- MT
#!/usr/bin/perl -wT
use CGI qw/:standard/;
use CGI::Cookie;
%cookies = fetch CGI::Cookie;
my $emailCookie = $cookies{'peiEmail'}->value;
my $ipCookie = $cookies{'peiIP'}->value;
my $fileName = substr $ENV{"QUERY_STRING"},9;
my $fileLoc = ' . $fileName;
my $timeStamp = 'TODAY';
$logEntry = $emailCookie . '|' . $ipCookie . '|' . $timeStamp . '|' . $fileName . "\n";
open (LOG, ">>ftpLog.txt");
flock (LOG, 2);
print LOG "$logEntry";
close (LOG);
Here's the error messages:
flock() on closed filehandle LOG at /var/print() on closed filehandle LOG at /var/
What gives?
- MT