PDA

View Full Version : site search script-problems


Benson
02-15-1999, 02:28 PM
I'm trying out a site search script. It is comprised of two perl scripts. "indexer.pl" indexes the site and "search.pl" is called by the visitor to obtain the results. It seems that this method is more server friendly as the visitor does not have to index the entire site on every query.

indexer.pl requires the following perl modules: Data--Dumper

Is this a problem?

Also, I cannot seem to execute the indexer.pl script..the shell says 'command not found'

ascii upload was used and the file has execute permission.

------------------
ICQ#8418658-alba gu brath!




[This message has been edited by Benson (edited 02-15-99).]

Terra
02-15-1999, 05:13 PM
Hello Benson,

Data::Dumper is a standard core Perl module and should not be a problem... It's probably in there for script debugging by the author...

As far as the problems you are seeing, have you looked at your 'logs_cgi/script' error log, and possibly cross-referenced with your 'logs_web/error' log? You will find a great deal of detailed responses and clues that can help you troubleshoot and fix the problem...

--
Terra
sysAdmin
FutureQuest

ChrisH
02-15-1999, 09:43 PM
Hi Benson,

One thing that gets me time to time is
that the command at the top to run perl
is not a correct path. It may say

/usr/bin/perl

when it should say (for FQ, I think)

/usr/local/bin/perl

Might be worth a look. I think that's
the error you get for this, too.


ch

Justin
02-15-1999, 10:21 PM
The path to perl can be either /usr/bin/perl or /usr/local/bin/perl - either one works the same on FQ.


------------------
Justin Nelson, SFE Inc.
http://www.vdj.net

Terra
02-16-1999, 12:24 AM
Don't forget the 'she-bang' sequence... (I didn't make that up...) http://www.aota.net/ubb/wink.gif

#!/usr/bin/perl
#!/usr/local/bin/perl

--
Terra
--Hmmm, 'She' == '#', curious...--
FutureQuest

[This message has been edited by ccTech (edited 02-16-99).]

jenili
02-18-1999, 12:57 AM
--Hmmm, 'She' == '#', curious...--

'#' == 'sharp', but programmers are too lazy to say 'sharp-bang' (aren't all really good programmers fundamentally lazy? I mean, besides you, Terra http://www.aota.net/ubb/smile.gif)

jeni

Del
02-18-1999, 01:49 AM
'#' == 'sharp'

Don't forget, '#' also means 'pound'. So, 'she' could also mean pound in shebang... What I bet that originated from is the wives of coders always beating on us (I mean them) because we (I mean they) spend to much time on our (I mean their) computer.

Or something

Del

Deb
02-18-1999, 01:44 PM
Or is that the other way around? :P

Then again you could always just do like terra and I did... marry the PCs and tell the courts we're marrying each other to take care of the legalities of it all :P

Deb

Del
02-18-1999, 07:04 PM
LOL :-)

Benson
02-19-1999, 01:46 AM
Just to close out this wayward thread, I now believe (thanks Jeni !) my problem was a simple path issue, i.e. I was ignoring it! Linux is funny about these dot-slash thingies http://www.aota.net/ubb/smile.gif