finding records in a flat file

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

finding records in a flat file

Post by Thunderstone »



Hi,

I am wondering if webinator can be used as a tool to find
specific records in a text file if given keywords in that record.

The datafile will contain book information for a book catalog:
isbn, title, author, price

I would like users to be able to do a keyword search (really words
from the title) and get the record returned to them if it is found.

Is there a way to get webinator to return this type of information?

Additionally, as I have been experimenting with this on my own,
I am finding that ./gw seems unable to complete a task

bash# ./gw -st "select Body from html where Url like 'riera/index'"
No database specified. Use the default (/var/www/docs/webinator/db)?
(y/n) default is y : y
You may use "-d-" to skip this question in the future.
999 Process 16917 has died. Cleaning up.
^C200 Got signal 2 - will attempt to quit nicely
^C200 Got signal 2 - quitting now

or

bash# ./gw -st "select Title from html where Url like 'riera/index'"
No database specified. Use the default (/var/www/docs/webinator/db)?
(y/n) default is y : y
You may use "-d-" to skip this question in the future.
999 Process 17002 died holding locks

I actually just installed the new version of webinator because
I though that perhaps my older version was at fault.
Is this problem occurring because I told webinator it would be receiving
queries from user 'www' and I am operating as root?

./gw will run and when I use 'ps ' to find the process, it is running
as 'www' (before it dies that is).

Your help is greatly appreciated,

David
Post Reply