X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fclient.xml;h=d874fe1d71288fce6fddcc699fcc422f26ad520d;hb=21f7c16c6b1b694405dbc1760d3d6cb3caac38f6;hp=0760a4b3da6a938cbbd63eee77756dae0b31206e;hpb=94fce64abe00f0334941ca270c8898bdabb0ca7c;p=yaz-moved-to-github.git diff --git a/doc/client.xml b/doc/client.xml index 0760a4b..d874fe1 100644 --- a/doc/client.xml +++ b/doc/client.xml @@ -1,9 +1,9 @@ - + The YAZ client Introduction - yaz-client is a line-mode Z39.50 client. It supports a fair amount - of the functionality of the Z39.50-1995 standard + yaz-client is a line-mode Z39.50/SRU client. It supports a fair amount + of the functionality of the Z39.50v3 standard. Its primary purpose is to exercise the package, and verify that the protocol works OK. For the same reason some commands offers more functionality than others. @@ -21,6 +21,7 @@ -m fname -a fname -c fname + -q fname -v level -p target -u auth @@ -30,8 +31,10 @@ in a UNIX shell / WIN32 console. The zurl, - specifies a Z39.50 host and, if specified, the client first tries to - establish connection with the Z39.50 target on the host. + specifies a Z39.50/SRU host and, if specified, the client first tries to + establish connection with the Z39.50/SRU target. + + Options are prefixed by - followed by a particular letter. @@ -66,6 +69,15 @@ + -q fname + + Sets the filename for CQL fields to + fname. If this option is not given the + YAZ client reads CQL fields from file + /usr/local/share/yaz/etc/pqf.properties. + + + -v level Sets the LOG level to level. @@ -112,26 +124,33 @@ In order to connect to Index Data's test Z39.50 server on bagel.indexdata.dk, port 210 and with the - database name marc, one would have to type + database name marc, one could type + + yaz-client bagel.indexdata.dk:210/marc + + + + The same server is also a SRU service. Connect to it via HTTP + as follows: + + yaz-client http://bagel.indexdata.dk:210/marc + - - yaz-client bagel.indexdata.dk:210/marc - In order to enable APDU log and connect to localhost, port 210 (default) and database Default (default) you'd write: - - - yaz-client -a - localhost - + + yaz-client -a - localhost + + The following command connects to a local server via UNIX socket /tmp/yaz and sets maximum message size to 5 MB. - yaz-client -k 5120 unix:/tmp/yaz - + + Commands