1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
2 "http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd" [
3 <!ENTITY zoomsh-commands SYSTEM "zoomsh-commands.xml">
5 <!-- $Id: zoomsh-man.xml,v 1.2 2006-04-24 12:41:01 marc Exp $ -->
9 <refentrytitle>zoomsh</refentrytitle>
10 <manvolnum>1</manvolnum>
14 <refname>zoomsh</refname>
15 <refpurpose>ZOOM shell</refpurpose>
20 <command>zoomsh</command>
21 <arg choice="opt" rep="repeat">commands</arg>
25 <refsect1><title>DESCRIPTION</title>
27 <command>zoomsh</command> is a ZOOM client with a simple
28 command line interface. The client demonstrates the ZOOM
29 API and is useful for testing targets.
32 You may pass one or more commands to <command>zoomsh</command>.
33 These commands are invoked first.
36 <refsect1><title>EXAMPLES</title>
38 If you start the <command>yaz-ztest</command> in one console you
39 can use the ZOOM shell as follows:
42 ZOOM>connect localhost:9999
44 localhost:9999: 7 hits
50 008 910710c19910701nju 00010 eng
54 100 10 $a Jack Collins
55 245 10 $a How to program a computer
64 You can also achieve the same result by passing the commands
65 as arguments on a single command line:
68 <literal>$ zoomsh "connect localhost:9999" "search computer"</literal>
69 <literal>"show 0 1" quit</literal>
72 <refsect1><title>COMMANDS</title>
75 <varlistentry><term><literal>connect</literal>
76 <replaceable>zurl</replaceable></term>
78 Connects to the target given by <replaceable>zurl</replaceable>.
79 </para></listitem></varlistentry>
81 <varlistentry><term><literal>close</literal>
82 [<replaceable>zurl</replaceable>]</term>
84 Closes connection to target given by
85 <replaceable>zurl</replaceable> or all targets if
86 <replaceable>zurl</replaceable> was omitted.
87 </para></listitem></varlistentry>
89 <varlistentry><term><literal>show</literal>
90 [<replaceable>start</replaceable>
91 [<replaceable>count</replaceable>]]
94 Displays <literal>count</literal> records starting at offset given
95 by <replaceable>start</replaceable>. First records has offset 0
96 (unlike the Z39.50 protocol).
97 </para></listitem></varlistentry>
99 <varlistentry><term><literal>quit</literal>
102 Quits <command>zoomsh</command>.
103 </para></listitem></varlistentry>
105 <varlistentry><term><literal>set</literal>
106 <replaceable>name</replaceable>
107 [<replaceable>value</replaceable>]
110 Sets option <replaceable>name</replaceable> to
111 <replaceable>value</replaceable>.
112 </para></listitem></varlistentry>
114 <varlistentry><term><literal>get</literal>
115 <replaceable>name</replaceable>
118 Prints value of option <replaceable>name</replaceable>.
119 </para></listitem></varlistentry>
121 <varlistentry><term><literal>help</literal>
124 Prints list of available commands.
125 </para></listitem></varlistentry>
130 <refsect1><title>SEE ALSO</title>
133 <refentrytitle>yaz</refentrytitle>
134 <manvolnum>7</manvolnum>
137 <refentrytitle>yaz-ztest</refentrytitle>
138 <manvolnum>8</manvolnum>
142 Section "Building clients with ZOOM" in the YAZ manual.
145 <ulink url="http://zoom.z3950.org/">ZOOM home page</ulink>.
149 <!-- Keep this Emacs mode comment at the end of the file