SPUG: Perl cgi and filehandles

William Julien moonbeam at catmanor.com
Fri Jan 5 14:44:03 CST 2001


>
>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" 
>

Check your permissions on the file. When you run "from the browser", you
are running as "nobody".

William

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