version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
LPF |
|
|
2 |
!!!LPF |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
EXIT STATUS |
|
|
7 |
FILES |
|
|
8 |
SEE ALSO |
|
|
9 |
DIAGNOSTICS |
|
|
10 |
HISTORY |
|
|
11 |
AUTHOR |
|
|
12 |
---- |
|
|
13 |
!!NAME |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
lpf - general printer filter |
|
|
17 |
!!SYNOPSIS |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
__lpf -P__''printer'' __-w__''width'' |
|
|
21 |
__-l__''length'' __-x__''width'' |
|
|
22 |
__-y__''length'' [[ __-c__ ] |
|
|
23 |
__-K__''controlfilename'' __-L__''bnrname'' [[ |
|
|
24 |
__-i__''indent'' ] [[ __-Z__''options'' ] [[ |
|
|
25 |
__-C__''class'' ] [[ __-J__''job'' ] [[ |
|
|
26 |
__-R__''accntname'' ] __-n__''login'' |
|
|
27 |
__-h__''Host'' __-F__''format'' [[ |
|
|
28 |
__-T__''[[crlf,debug]'' __-D__''level'' ] [[ |
|
|
29 |
affile ] |
|
|
30 |
!!DESCRIPTION |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
__Lpf__ is a general printer filter. Usually it is used |
|
|
34 |
as filter in the printcap file and is called by lpd. The |
|
|
35 |
-Tcrlf option will suppress translation of LF to CR/LF |
|
|
36 |
pairs. The -Tdebug option will increment the debug |
|
|
37 |
level. |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
The following options passes lpd by default: |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
__-P__''printer'' |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
The name of the printer. |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
__-w__''width'' |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
The page width in chars, as given in the :pw field in the |
|
|
53 |
printcap file |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
__-l__''length'' |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
The page length in lines, as given in the :pl field in the |
|
|
60 |
printcap file |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
__-x__''width'' |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
The page width in pixels, as given in the :px field in the |
|
|
67 |
printcap file |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
__-y__''length'' |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
The page length in pixels, as given in the :py field in the |
|
|
74 |
printcap file |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
__-K__''controlfilename'' |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
The name of the control file. |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
__-L__''bnrname'' |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
The banner name. This is set by the lpr -T |
|
|
87 |
option. |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
__-n__''login'' |
|
|
91 |
|
|
|
92 |
|
|
|
93 |
The user login name. |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
__-h__''Host'' |
|
|
97 |
|
|
|
98 |
|
|
|
99 |
The host where the job was submitted. |
|
|
100 |
|
|
|
101 |
|
|
|
102 |
__-F__''format'' |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
The job format from the lpr -F option or other |
|
|
106 |
option. |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
These options are optionally set by lpd: |
|
|
110 |
|
|
|
111 |
|
|
|
112 |
__-Z__''options'' |
|
|
113 |
|
|
|
114 |
|
|
|
115 |
Extra options. They are passed from the __-Z__ parameter |
|
|
116 |
given on the lpr command command line and can be interpreted |
|
|
117 |
by the filter. |
|
|
118 |
|
|
|
119 |
|
|
|
120 |
These remaining options can be added to the filter entry in |
|
|
121 |
the printcap file: |
|
|
122 |
|
|
|
123 |
|
|
|
124 |
__-c__ |
|
|
125 |
|
|
|
126 |
|
|
|
127 |
ignore control characters, set by lpr -b (binary) or -l |
|
|
128 |
(literal) options. |
|
|
129 |
|
|
|
130 |
|
|
|
131 |
__-i__''indent'' |
|
|
132 |
|
|
|
133 |
|
|
|
134 |
The indentation amount, set by lpr -i indent |
|
|
135 |
option. |
|
|
136 |
|
|
|
137 |
|
|
|
138 |
__-C__''class'' |
|
|
139 |
|
|
|
140 |
|
|
|
141 |
The class name, set by lpr -C class option. |
|
|
142 |
|
|
|
143 |
|
|
|
144 |
__-J__''job'' |
|
|
145 |
|
|
|
146 |
|
|
|
147 |
The job name, set by lpr -J job option. |
|
|
148 |
|
|
|
149 |
|
|
|
150 |
__-R__''accntname'' |
|
|
151 |
|
|
|
152 |
|
|
|
153 |
The name of the accounting file, from printcap |
|
|
154 |
information. |
|
|
155 |
|
|
|
156 |
|
|
|
157 |
__-D__''level'' |
|
|
158 |
|
|
|
159 |
|
|
|
160 |
Sets debug level. The level must be an integer, a nonzero |
|
|
161 |
value switches debugging on. |
|
|
162 |
|
|
|
163 |
|
|
|
164 |
__-T__''crlf'' |
|
|
165 |
|
|
|
166 |
|
|
|
167 |
Turn LF to CR/LF translation off. |
|
|
168 |
|
|
|
169 |
|
|
|
170 |
__-T__''debug'' |
|
|
171 |
|
|
|
172 |
|
|
|
173 |
Increment the debug level. |
|
|
174 |
!!EXIT STATUS |
|
|
175 |
|
|
|
176 |
|
|
|
177 |
The following exit values are returned: |
|
|
178 |
|
|
|
179 |
|
|
|
180 |
__zero (0)__ |
|
|
181 |
|
|
|
182 |
|
|
|
183 |
Successful completion. |
|
|
184 |
|
|
|
185 |
|
|
|
186 |
__non-zero (!=0)__ |
|
|
187 |
|
|
|
188 |
|
|
|
189 |
An error occurred. |
|
|
190 |
!!FILES |
|
|
191 |
|
|
|
192 |
|
|
|
193 |
The files used by LPRng are set by values in the printer |
|
|
194 |
configuration file. The following are a commonly used set of |
|
|
195 |
default values. |
|
|
196 |
|
|
|
197 |
|
|
|
198 |
/etc/lprng/lpd.conf LPRng configuration file |
|
|
199 |
${HOME}/.printcap user printer description file |
|
|
200 |
/etc/lprng/printcap printer description file |
|
|
201 |
/etc/lprng/lpd.perms permissions |
|
|
202 |
/var/run/lprng/lpd lock file for queue control |
|
|
203 |
/var/spool/lpd spool directories |
|
|
204 |
/var/spool/lpd/QUEUE/control queue control |
|
|
205 |
/var/spool/lpd/QUEUE/log trace or debug log file |
|
|
206 |
/var/spool/lpd/QUEUE/acct accounting file |
|
|
207 |
/var/spool/lpd/QUEUE/status status file |
|
|
208 |
!!SEE ALSO |
|
|
209 |
|
|
|
210 |
|
|
|
211 |
lpd.conf(5), lpc(8), lpd(8), lpr(1), lpq(1), lprm(1), |
|
|
212 |
printcap(5), lpd.perms(5), pr(1). |
|
|
213 |
!!DIAGNOSTICS |
|
|
214 |
|
|
|
215 |
|
|
|
216 |
Most of the diagnostics are self explanatory. |
|
|
217 |
If you are puzzled over the exact cause of failure, |
|
|
218 |
set the debugging level on (-D5) and run again. |
|
|
219 |
The debugging information will |
|
|
220 |
help you to pinpoint the exact cause of failure. |
|
|
221 |
!!HISTORY |
|
|
222 |
|
|
|
223 |
|
|
|
224 |
LPRng is a enhanced printer spooler system with |
|
|
225 |
functionality similar to the Berkeley LPR software. The |
|
|
226 |
LPRng mailing list is lprng@lprng.com; subscribe by sending |
|
|
227 |
mail to lprng-request@lprng.com with the word subscribe in |
|
|
228 |
the body. The software is available from |
|
|
229 |
ftp://ftp.lprng.com/pub/LPRng. |
|
|
230 |
!!AUTHOR |
|
|
231 |
|
|
|
232 |
|
|
|
233 |
Patrick Powell |
|
|
234 |
---- |