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"
8 conv_lpd \- convert LPD configuration
12 \fBconv_lpd\fR [\fB-c\fR printers | \fB-c\fR printcap] [\fB-n\fR] \fIfile\fR
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.
28 The following options are supported:
32 \fB\fB\fR\fB-c\fR\fB printers \fR|\fB \fR\fB-c\fR\fB printcap\fR\fR
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.
46 Preserves the namelist during the conversion.
52 The following operands are supported:
59 The file to be converted.
64 \fBExample 1 \fRConverting a \fBprintcap\fR file to a \fBprinters.conf\fR
68 The following example converts a \fBprintcap\fR file to a \fBprinters.conf\fR
74 \fBexample% conv_lpd /etc/printcap\fR
80 \fBExample 2 \fRConverting a \fBprintcap\fR file to a \fBprinters.conf\fR file
81 and preserving the namelist.
84 The following example converts a \fBprintcap\fR file to a \fBprinters.conf\fR
85 file and preserves the namelist.
90 \fBexample% conv_lpd -c printers -n /etc/printcap\fR
96 \fBExample 3 \fRConverting a \fBprinters.conf\fR file to a \fBprintcap\fR
97 file and preserving the namelist.
100 The following example converts a \fBprinters.conf\fR file to a \fBprintcap\fR
101 file and preserves the namelist.
106 \fBexample% conv_lpd -c printcap -n /etc/printers.conf\fR
114 The following exit values are returned:
121 Successful completion.
137 \fB\fB/etc/printers.conf\fR\fR
140 System printer configuration database.
146 \fB\fB/etc/printcap\fR\fR
149 SunOS 4.\fIx\fR printer capability database.
155 \fBlpset\fR(1M), \fBprinters.conf\fR(4), \fBattributes\fR(5)