Hi

I'm trying to write a wrapper script which calls s.cgi after tweaking the environment. The reason for this is that I want to call it in as an SSI, so the outer shell of the template comes from the site-wide templating system. So I've got something like:

#!/usr/bin/perl
...
print `/path/to/cgi-bin/s.cgi`;

s.cgi works fine if run alone. The wrapper script works fine from the command line, run by 'nobody', the user which Apache runs under, but returns no output when run via a browser. There's nothing useful in the system return codes and error codes to suggest why it failed. Also, although I've set 'LogLevel debug' in searchd.conf, nothing gets appended to dlog.log to suggest why the search failed.

I've tried this on two different machines now, and in two different languages (Ruby, Perl) - can anyone please suggest what might be going wrong, or how I can get more debugging info?

Thanks
alex

Reply via email to