1conv_lpd(1M) System Administration Commands conv_lpd(1M)
2
3
4
6 conv_lpd - convert LPD configuration
7
9 conv_lpd [-c printers | -c printcap] [-n] file
10
11
13 conv_lpd converts LPD printer configuration information from file to
14 a printers.conf or a printcap file (see printers.conf(4)). file speci‐
15 fies the name of the input file, and can be either in printers.conf or
16 printcap format. If file is in printers.conf format, it converts it
17 to a printcap file. If file is in printcap format, it converts it to
18 a printers.conf file.
19
21 The following options are supported:
22
23 -c printers | -c printcap Specifies the type of output file produced
24 by the conversion. -c printers converts to
25 a printers.conf file. -c printcap con‐
26 verts to a printcap file. -c printers is
27 the default.
28
29
30 -n Preserves the namelist during the conver‐
31 sion.
32
33
35 The following operands are supported:
36
37 file The file to be converted.
38
39
41 Example 1 Converting a printcap file to a printers.conf file.
42
43
44 The following example converts a printcap file to a printers.conf
45 file.
46
47
48 example% conv_lpd /etc/printcap
49
50
51
52 Example 2 Converting a printcap file to a printers.conf file and pre‐
53 serving the namelist.
54
55
56 The following example converts a printcap file to a printers.conf file
57 and preserves the namelist.
58
59
60 example% conv_lpd -c printers -n /etc/printcap
61
62
63
64 Example 3 Converting a printers.conf file to a printcap file and pre‐
65 serving the namelist.
66
67
68 The following example converts a printers.conf file to a printcap
69 file and preserves the namelist.
70
71
72 example% conv_lpd -c printcap -n /etc/printers.conf
73
74
75
77 The following exit values are returned:
78
79 0 Successful completion.
80
81
82 non-zero An error occurred.
83
84
86 /etc/printers.conf System printer configuration database.
87
88
89 /etc/printcap SunOS 4.x printer capability database.
90
91
93 See attributes(5) for descriptions of the following attributes:
94
95
96
97
98 ┌─────────────────────────────┬─────────────────────────────┐
99 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
100 ├─────────────────────────────┼─────────────────────────────┤
101 │Availability │SUNWpcu │
102 └─────────────────────────────┴─────────────────────────────┘
103
105 lpset(1M), printers.conf(4), attributes(5)
106
107
108
109SunOS 5.11 9 Sep 1996 conv_lpd(1M)