in reply to Using Fcntl in CGI

"he crazy thing is that it works via command line. Just doesn't serve up the page."

Sounds like you are forgetting to print the content header:

print header();
Be sure that is the first thing you print to STDOUT. If that is not the problem, then the next item is proper paths. Your script runs as a different user when requested as a CGI script, so you have to use full paths to the files you are trying to access.

Next time, be sure and give us the error message as well. :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re: (jeffa) Re: Using Fcntl in CGI
by Avox (Sexton) on Apr 08, 2003 at 14:54 UTC
    I am printing the header. I just didn't include all that in the post. The paths are correct. I comment out the sysopen and locking code and just try to leave the use Fcntl qw(:DEFAULT :flock); in and that causes the webpage to fail. I comment it out, and the page loads fine. EDIT: the error is an Internal Server Error.
      Is this the error displayed on the browser?
      I'm assuming it is....
      If so, could you please post the error printed to your Apache error_log?