Rob's search thingy Install


Download source: websearch.tar.gz
Extract with 'tar xvfz websearch.tar.gz'.


cc -O2 -Wall -o cgi-index cgi-index.c
cc -O2 -Wall -o cgi-search cgi-search.c
cc -O2 -Wall -o fndtitle fndtitle.c
cc -O2 -Wall -o gen-num-index gen-num-index.c
cc -O2 -Wall -o url2file url2file.c

If the compilation of cgi-search causes problems, see: custom.h.



Do this as root. Directories need to exist.

cp cgi-index /usr/local/bin/
cp fndtitle /usr/local/bin/
cp gen-num-index /usr/local/bin/
cp url2file /usr/local/bin/
cp cgi-search /usr/lib/cgi-bin/


cp /usr/local/bin/
cp /usr/local/bin/

Run both from a cron job. after Linklint and before

Man pages

Do this as root. Directories need to exist.

cp cgi-index.1 /usr/local/share/man/man1/
cp cgi-search.1 /usr/local/share/man/man1/
cp fndtitle.1 /usr/local/share/man/man1/
cp gen-num-index.1 /usr/local/share/man/man1/
cp url2file.1 /usr/local/share/man/man1/
gzip /usr/local/share/man/man1/cgi-index.1
gzip /usr/local/share/man/man1/cgi-search.1
gzip /usr/local/share/man/man1/fndtitle.1
gzip /usr/local/share/man/man1/gen-num-index.1
gzip /usr/local/share/man/man1/url2file.1


cp file-formats /usr/local/share/doc/websearch/
cp headers /usr/local/share/doc/websearch/
cp README /usr/local/share/doc/websearch/

Example webform

cp index.html /var/www/search/

Directory needs to exist.


The following directories need to exist;

They have to be (group) writable by the indexer process owner.

The software assumes that all HTML files have the '.html' extension. If this is not the case, you need to modify the shell scripts and C-sources, to include other extensions.

Don't run the indexer as root.
Don't run it as the webserver process owner either.