[Xapian-discuss] Omega behaves differently
Jim
k4gvo at bellsouth.net
Sun Jan 7 17:54:20 GMT 2007
Richard Boulton wrote:
> Jim wrote:
>> I don't understand what's going on with omega. I have a cgi script that
>> is calling omega using the back tics, such as
>> `/usr/local/lib/omega/bin/omega FMT=mail.xml DB=/current
>> DEFAULTOP=and P=search`
>
> Omega can take input from the standard CGI environment variables, or
> from the command line, or from standard input. However, if CGI
> variables are set (as they will be since you're calling omega from
> within a CGI script), the CGI variables take precedence.
>
Ah! Of course, the called program will inherit the same environment
variables as the cgi script. I didn't even think about that. It
floated through my head to run a printenv once, but I never did it. I
guess I should listen to my head once in a while.
Thanks!
Jim.
More information about the Xapian-discuss
mailing list