Lines 43-49
printername may be just a name (\fBPrinter 1\fR), or it may be a full name in nb
Link Here
|
43 |
Systems using a BSD printing system should make use of a pipe to the printing command in question within the |
43 |
Systems using a BSD printing system should make use of a pipe to the printing command in question within the |
44 |
\fBpr\fR |
44 |
\fBpr\fR |
45 |
option (eg\&. |
45 |
option (eg\&. |
46 |
\fBpr=|/usr/bin/lpr \-J%J \-u%U\fR)\&. Note: When printing using a pipe, papd recognizes several wildcards: %F will be replaced by the name present in the "%%For:" comment in the PostScript stream, same with %J for the "%%Title:" comment\&. %U will be substituted with the login name (the latter applies only when authenticated printing is in effect)\&. |
46 |
\fBpr=|/usr/bin/lpr)\&. |
47 |
.PP |
47 |
.PP |
48 |
When CUPS support is compiled in, then |
48 |
When CUPS support is compiled in, then |
49 |
\fBcupsautoadd \fR |
49 |
\fBcupsautoadd \fR |
Lines 148-186
HP Printer:\e
Link Here
|
148 |
.\} |
148 |
.\} |
149 |
|
149 |
|
150 |
.PP |
150 |
.PP |
151 |
An alternative to the technique outlined above is to direct papd\'s output via a pipe into another program\&. Using this mechanism almost all printing systems can be driven\&. Netatalk supplies three "wildcards" that get substituted with values of the already printed job: |
151 |
An alternative to the technique outlined above is to direct papd\'s output via a pipe into another program\&. Using this mechanism almost all printing systems can be driven\&. |
152 |
\fB%F\fR, |
|
|
153 |
\fB%U\fR |
154 |
and |
155 |
\fB%J\fR\&. Using these wildcards, one can pass those parameters directly to programs or implement small wrapper scripts to call the printing system in question\&. |
156 |
.PP |
152 |
.PP |
157 |
\fBExample.\ \&papd.conf examples using pipes\fR |
153 |
\fBExample.\ \&papd.conf examples using pipes\fR |
158 |
.PP |
154 |
.PP |
159 |
The first spooler is known as HP 8100\&. It pipes the print job to |
155 |
The first spooler is known as HP 8100\&. It pipes the print job to |
160 |
\fB/usr/bin/lpr\fR |
156 |
\fB/usr/bin/lpr\fR |
161 |
for printing using the value of the |
157 |
for printing. |
162 |
\fI%%Title: \fR |
158 |
PSSP authenticated printing is enabled, as is CAP\-style authenticated printing\&. Both methods support guest and cleartext authentication as specified by the \'\fBam\fR\' option\&. The PPD used is |
163 |
comment as job name\&. PSSP authenticated printing is enabled, as is CAP\-style authenticated printing\&. Both methods support guest and cleartext authentication as specified by the \'\fBam\fR\' option\&. The PPD used is |
159 |
/etc/atalk/ppds/hp8100\&.ppd\&. |
164 |
/etc/atalk/ppds/hp8100\&.ppd\&. The second spooler is called "Dump PostScript" and uses a pipe to |
|
|
165 |
\fBcat\fR |
166 |
to send the raw PostScript code into the user\'s home directory into a file called like the printjob\&. |
167 |
.sp |
160 |
.sp |
168 |
.if n \{\ |
161 |
.if n \{\ |
169 |
.RS 4 |
162 |
.RS 4 |
170 |
.\} |
163 |
.\} |
171 |
.nf |
164 |
.nf |
172 |
HP 8100:\e |
165 |
HP 8100:\e |
173 |
:pr=|/usr/bin/lpr \-Plp \-J"%J":\e |
166 |
:pr=|/usr/bin/lpr \-Plp:\e |
174 |
:sp:\e |
167 |
:sp:\e |
175 |
:ca=/tmp/print:\e |
168 |
:ca=/tmp/print:\e |
176 |
:am=uams_guest\&.so,uams_pam\&.so:\e |
169 |
:am=uams_guest\&.so,uams_pam\&.so:\e |
177 |
:pd=/etc/atalk/ppds/hp8100\&.ppd: |
170 |
:pd=/etc/atalk/ppds/hp8100\&.ppd: |
178 |
|
|
|
179 |
Dump PostScript:LaserWriter@Server:\e |
180 |
:pr=|cat >/home/%U/%J\-prn\&.out:\e |
181 |
:pd=/usr/share/lib/ppd/mooralana\&.ppd:\e |
182 |
:sp:au:op=lp:\e |
183 |
:am=uams_clrtxt\&.so: |
184 |
.fi |
171 |
.fi |
185 |
.if n \{\ |
172 |
.if n \{\ |
186 |
.RE |
173 |
.RE |
187 |
- |
|
|