1ZOOMSH(1) Commands ZOOMSH(1)
2
3
4
6 zoomsh - ZOOM shell
7
9 zoomsh [-a apdufile] [-e] [-v loglevel] [commands...]
10
12 zoomsh is a ZOOM client with a simple command line interface. The
13 client demonstrates the ZOOM API and is useful for testing targets.
14
15 You may pass one or more commands to zoomsh. These commands are invoked
16 first.
17
19 -a apdufile
20 Logs protocol packages into apdufile (APDU log).
21
22 -e
23 Makes zoomsh stop processing commands as soon as an error occur.
24 The exit code of zoomsh is 1 if error occurs; 0 otherwise.
25
26 -v loglevel
27 Sets YAZ log level to loglevel.
28
30 If you start the yaz-ztest in one console you can use the ZOOM shell as
31 follows:
32
33 $ zoomsh
34 ZOOM>connect localhost:9999
35 ZOOM>search computer
36 localhost:9999: 7 hits
37 ZOOM>show 0 1
38 1 Default USmarc
39 001 11224466
40 003 DLC
41 005 00000000000000.0
42 008 910710c19910701nju 00010 eng
43 010 $a 11224466
44 040 $a DLC $c DLC
45 050 00 $a 123-xyz
46 100 10 $a Jack Collins
47 245 10 $a How to program a computer
48 260 1 $a Penguin
49 263 $a 8710
50 300 $a p. cm.
51 ZOOM>quit
52
53
54
55 You can also achieve the same result by passing the commands as
56 arguments on a single command line:
57
58 $ zoomsh "connect localhost:9999" "search computer" "show 0 1" quit
59
61 connect zurl
62 Connects to the target given by zurl.
63
64 close [zurl]
65 Closes connection to target given by zurl or all targets if zurl
66 was omitted.
67
68 show [start [count]]
69 Displays count records starting at offset given by start. First
70 records has offset 0 (unlike the Z39.50 protocol).
71
72 quit
73 Quits zoomsh.
74
75 set name [value]
76 Sets option name to value.
77
78 get name
79 Prints value of option name.
80
81 help
82 Prints list of available commands.
83
85 yaz(7), yaz-ztest(8),
86
87 Section "Building clients with ZOOM" in the YAZ manual.
88
89 ZOOM home page[1].
90
92 Index Data
93
95 1. ZOOM home page
96 http://zoom.z3950.org/
97
98
99
100YAZ 5.32.0 05/30/2022 ZOOMSH(1)