SPUG: Perl cgi and filehandles
Alyssa Harding
alyssa at atuin.net
Fri Jan 5 14:38:20 CST 2001
That sounds like a permissions issue.
When you run it on the command line, you're running it as yourself. You
have write permission to the file.
Most web servers run as the user 'nobody'. Check to see that 'nobody'
(or your webserver) has permission to write to the file.
A.
"Brittingham, John" wrote:
>
> I hope I am wording this right...
> Does perl run from a command line work differently that perl run as cgi from
> a browser in requards to filehandles?
> The reason I am asking is I have a script the writes to a file
> ("single_log_extract_results.htm") when it is run from the command line but
> dies when it is run from a browser with "can not open
> /home/httpd/html/single_log_extract_results.htm"
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
> Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
> Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
> For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
> Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
More information about the spug-list
mailing list