netex3 - Example Lookup Program

SYNOPSIS

netex3 [-hhostname] [-sport] [-uusername] [-ppassword] [-1]
       ["query" [database]]


DESCRIPTION
This is an example of a lookup program using the client/server interface. By default it will look in the testdb database for patents that match the Metamorph query " magnetic  coil" in the abstract.

Making and Running the Lookup Program

To make netex3 copy makefile and netex3.c from the /usr/local/morph3/api directory to a working directory, then type make netex3 in that directory. This example accesses the example database shipped with Texis or created with the example loader program (/usr/local/morph3/texis/testdb). To run the compiled in example the Texis server must be running on the machine with the database. After that you can simply run the program netex3, which should show you one abstract matching the default query. The previous run assumes that the server was running with the -a option since the client attempts to login to it as the anonymous user "".

Options

The lookup program is flexible, allowing any query on any database on any machine running the Texis server.

The options are

-hhostname
Connect to a server on hostname. Default is the local host.
-sport
Connect to port. The default is the default Texis port (10002).
-uuser
Login as user. The default is to use no userid and login as the anonymous user "".
-ppassword
Login using password. The default is no password.
-1
Only return the first hit.
query
Any valid Texis SQL statement. The default is "select * from patent where pabstract like ' magnetic  coil'"
database
The name of the database to access. Default is /usr/local/morph3/texis/testdb.


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.