File: zoomsh.1

package info (click to toggle)
yaz 3.0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,404 kB
  • ctags: 12,108
  • sloc: xml: 116,075; ansic: 52,205; sh: 9,746; tcl: 2,043; makefile: 1,141; yacc: 347
file content (127 lines) | stat: -rw-r--r-- 2,229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
.\"     Title: zoomsh
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
.\"      Date: 06/18/2008
.\"    Manual: 
.\"    Source: YAZ 3.0.34
.\"
.TH "ZOOMSH" "1" "06/18/2008" "YAZ 3.0.34" ""
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
zoomsh \- ZOOM shell
.SH "SYNOPSIS"
.HP 7
\fBzoomsh\fR [commands...]
.SH "DESCRIPTION"
.PP

\fBzoomsh\fR
is a ZOOM client with a simple command line interface\&. The client demonstrates the ZOOM API and is useful for testing targets\&.
.PP
You may pass one or more commands to
\fBzoomsh\fR\&. These commands are invoked first\&.
.SH "EXAMPLES"
.PP
If you start the
\fByaz\-ztest\fR
in one console you can use the ZOOM shell as follows:
.sp
.RS 4
.nf
$ zoomsh
ZOOM>connect localhost:9999
ZOOM>search computer
localhost:9999: 7 hits
ZOOM>show 0 1
1 Default USmarc
001    11224466 
003 DLC
005 00000000000000\&.0
008 910710c19910701nju           00010 eng  
010    $a    11224466 
040    $a DLC $c DLC
050 00 $a 123\-xyz
100 10 $a Jack Collins
245 10 $a How to program a computer
260 1  $a Penguin
263    $a 8710
300    $a p\&. cm\&.
ZOOM>quit

    
.fi
.RE
.PP
You can also achieve the same result by passing the commands as arguments on a single command line:
.PP

$ zoomsh "connect localhost:9999" "search computer"
"show 0 1" quit
.SH "COMMANDS"
.PP
connect \fIzurl\fR
.RS 4
Connects to the target given by
\fIzurl\fR\&.
.RE
.PP
close [\fIzurl\fR]
.RS 4
Closes connection to target given by
\fIzurl\fR
or all targets if
\fIzurl\fR
was omitted\&.
.RE
.PP
show [\fIstart\fR [\fIcount\fR]]
.RS 4
Displays
count
records starting at offset given by
\fIstart\fR\&. First records has offset 0 (unlike the Z39\&.50 protocol)\&.
.RE
.PP
quit
.RS 4
Quits
\fBzoomsh\fR\&.
.RE
.PP
set \fIname\fR [\fIvalue\fR]
.RS 4
Sets option
\fIname\fR
to
\fIvalue\fR\&.
.RE
.PP
get \fIname\fR
.RS 4
Prints value of option
\fIname\fR\&.
.RE
.PP
help
.RS 4
Prints list of available commands\&.
.RE
.SH "SEE ALSO"
.PP

\fByaz\fR(7),
\fByaz-ztest\fR(8),
.PP
Section "Building clients with ZOOM" in the YAZ manual\&.
.PP

\fIZOOM home page\fR\&[1]\&.
.SH "NOTES"
.IP " 1." 4
ZOOM home page
.RS 4
\%http://zoom.z3950.org/
.RE