If the user that CGIs run as can't write to the directory in which
CGIs reside, you can create a writable meta/ directory (or a link
to one) there in advance:
...
% mv fom /usr/local/etc/httpd/cgi-bin/fom
% mkdir /usr/local/etc/httpd/cgi-bin/meta
% chown nobody /usr/local/etc/httpd/cgi-bin/meta
% netscape http://localhost/cgi-bin/fom
or
...
% mv fom /usr/local/etc/httpd/cgi-bin/fom
% mkdir /somewhere/else/meta
% chown nobody /somewhere/else/meta
% ln -s /somewhere/else/meta /usr/local/etc/httpd/cgi-bin/meta
% netscape http://localhost/cgi-bin/fom
If you'd rather not even put a link in that directory, modify the
fom CGI stub to directly name the desired meta directory:
% vi fom
% cat fom
#!/usr/local/bin/perl
use Faq::Omatic::dispatch
Faq::Omatic::dispatch::main('/somewhere/else/meta/');
% mv fom ...
|