Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
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.
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.
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]
conv_lpd [-c printers | -c printcap] [-n] file
conv_lpd converts LPD printer configuration information from file to a printers.conf or a printcap file (see printers.conf(5)). file specifies the name of the input file, and can be either in printers.conf or printcap format. If file is in printers.conf format, it converts it to a printcap file. If file is in printcap format, it converts it to a printers.conf file.
The following options are supported: -c printers | -c printcap
Specifies the type of output file produced by the conversion. -c printers converts to a printers.conf file. -c printcap converts to a printcap file. -c printers is the default.
Preserves the namelist during the conversion.
The following operands are supported: file
The file to be converted.
Example 1 Converting a printcap file to a printers.conf file.
The following example converts a printcap file to a printers.conf file.
example% conv_lpd /etc/printcap
Example 2 Converting a printcap file to a printers.conf file and preserving the namelist.
The following example converts a printcap file to a printers.conf file and preserves the namelist.
example% conv_lpd -c printers -n /etc/printcap
Example 3 Converting a printers.conf file to a printcap file and preserving the namelist.
The following example converts a printers.conf file to a printcap file and preserves the namelist.
example% conv_lpd -c printcap -n /etc/printers.conf
The following exit values are returned: 0
Successful completion.
An error occurred.
System printer configuration database.
SunOS 4.x printer capability database.
printers.conf (5), attributes (7), lpset (8)