6324 Add an `ndp' tool for manipulating the neighbors table
[illumos-gate.git] / usr / src / man / man1m / conv_lpd.1m
blob05efea6f712ebd17eb3d2e1b03c1eb3770f87441
1 '\" te
2 .\"  Copyright (c) 1996 Sun Microsystems, Inc.  All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH CONV_LPD 1M "Sep 9, 1996"
7 .SH NAME
8 conv_lpd \- convert LPD configuration
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBconv_lpd\fR [\fB-c\fR printers | \fB-c\fR printcap] [\fB-n\fR] \fIfile\fR
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 \fBconv_lpd\fR converts  \fBLPD\fR printer configuration information from
19 \fIfile\fR to a \fBprinters.conf\fR or a  \fBprintcap\fR file (see
20 \fBprinters.conf\fR(4)). \fIfile\fR specifies the name of the input file, and
21 can be either in \fBprinters.conf\fR or  \fBprintcap\fR format. If  \fIfile\fR
22 is in  \fBprinters.conf\fR format, it converts it to a \fBprintcap\fR file. If
23 \fIfile\fR is in  \fBprintcap\fR format, it converts it to a
24 \fBprinters.conf\fR file.
25 .SH OPTIONS
26 .sp
27 .LP
28 The following options are supported:
29 .sp
30 .ne 2
31 .na
32 \fB\fB\fR\fB-c\fR\fB printers \fR|\fB \fR\fB-c\fR\fB printcap\fR\fR
33 .ad
34 .RS 29n
35 Specifies the type of output file produced by the conversion. \fB-c\fR
36 \fBprinters\fR converts to a \fBprinters.conf\fR file.  \fB-c\fR \fBprintcap\fR
37 converts to a \fBprintcap\fR file. \fB-c\fR \fBprinters\fR is the default.
38 .RE
40 .sp
41 .ne 2
42 .na
43 \fB\fB-n\fR\fR
44 .ad
45 .RS 29n
46 Preserves the namelist during the conversion.
47 .RE
49 .SH OPERANDS
50 .sp
51 .LP
52 The following operands are supported:
53 .sp
54 .ne 2
55 .na
56 \fB\fIfile\fR\fR
57 .ad
58 .RS 8n
59 The file to be converted.
60 .RE
62 .SH EXAMPLES
63 .LP
64 \fBExample 1 \fRConverting a \fBprintcap\fR file to a  \fBprinters.conf\fR
65 file.
66 .sp
67 .LP
68 The following example converts a  \fBprintcap\fR file to a  \fBprinters.conf\fR
69 file.
71 .sp
72 .in +2
73 .nf
74 \fBexample% conv_lpd /etc/printcap\fR
75 .fi
76 .in -2
77 .sp
79 .LP
80 \fBExample 2 \fRConverting a  \fBprintcap\fR file to a \fBprinters.conf\fR file
81 and preserving the namelist.
82 .sp
83 .LP
84 The following example converts a  \fBprintcap\fR file to a \fBprinters.conf\fR
85 file and preserves the namelist.
87 .sp
88 .in +2
89 .nf
90 \fBexample% conv_lpd -c printers -n /etc/printcap\fR
91 .fi
92 .in -2
93 .sp
95 .LP
96 \fBExample 3 \fRConverting a  \fBprinters.conf\fR file to a  \fBprintcap\fR
97 file and preserving the namelist.
98 .sp
99 .LP
100 The following example converts a  \fBprinters.conf\fR file to a  \fBprintcap\fR
101 file and preserves the namelist.
104 .in +2
106 \fBexample% conv_lpd -c printcap -n /etc/printers.conf\fR
108 .in -2
111 .SH EXIT STATUS
114 The following exit values are returned:
116 .ne 2
118 \fB\fB0\fR\fR
120 .RS 12n
121 Successful completion.
125 .ne 2
127 \fBnon-zero\fR
129 .RS 12n
130 An error occurred.
133 .SH FILES
135 .ne 2
137 \fB\fB/etc/printers.conf\fR\fR
139 .RS 22n
140 System printer configuration database.
144 .ne 2
146 \fB\fB/etc/printcap\fR\fR
148 .RS 22n
149 SunOS 4.\fIx\fR printer capability database.
152 .SH SEE ALSO
155 \fBlpset\fR(1M), \fBprinters.conf\fR(4), \fBattributes\fR(5)