[htdig] Running htsearch from perl script


Krishna (krishna@www.tristatejobs.com)
Fri, 18 Jun 1999 15:10:09 -0400


Hello,

I am trying to write a perl scrit that will execute htsearch.
The problem i am having is , htsearch doesn't "see" the variable that
is set by the script.

When trying to execute the other program the environment is set
correctly.

What am i doing wrong ?

The example below will always return:
"no matches were found to "".

i.e none of the env. parametrs are set correctly!

#!/usr/bin/perl
$ENV{restrict}="";
$ENV{exclude}="";
$ENV{words}="test";
$ENV{method}="or";
$ENV{config}="htdig";
$ENV{format}="long";
$ENV{lmatchesperpage}="15";
system "htsearch";

Thanks
krishna

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Fri Jun 18 1999 - 08:43:02 PDT