📄 5.t
字号:
.\" Copyright (c) 1983, 1993.\" The Regents of the University of California. All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)5.t 8.1 (Berkeley) 6/8/93.\".NH 1Output filter specifications.PPThe filters supplied with 4.3BSDhandle printing and accounting for most commonline printers, the Benson-Varian, the wide (36") andnarrow (11") Versatec printer/plotters. For other devices or accountingmethods, it may be necessary to create a new filter..PPFilters are spawned by \fIlpd\fPwith their standard input the data to be printed, and standard outputthe printer. The standard error is attached to the.B lffile for logging errors or \fIsyslogd\fP may be used for logging errors.A filter must return a 0 exitcode if there were no errors, 1 if the job should be reprinted,and 2 if the job should be thrown away.When \fIlprm\fPsends a kill signal to the \fIlpd\fP process controllingprinting, it sends a SIGINT signal to all filters and descendents of filters.This signal can be trapped by filters that needto do cleanup operations such asdeleting temporary files..PPArguments passed to a filter depend on its type.The.B offilter is called with the following arguments..DS\fIfilter\fP \fB\-w\fPwidth \fB\-l\fPlength.DEThe \fIwidth\fP and \fIlength\fP values come from the.B pwand.B plentries in the printcap database.The.B iffilter is passed the following parameters..DS\fIfilter\fP [\|\fB\-c\fP\|] \fB\-w\fPwidth \fB\-l\fPlength \fB\-i\fPindent \fB\-n\fP login \fB\-h\fP host accounting_file.DEThe.B \-cflag is optional, and only supplied when control charactersare to be passed uninterpreted to the printer (when using the.B \-loption of.I lprto print the file).The.B \-wand.B \-lparameters are the same as for the.B offilter.The.B \-nand.B \-hparameters specify the login name and host name of the job owner.The last argument is the name of the accounting file from.IR printcap ..PPAll other filters are called with the following arguments:.DS\fIfilter\fP \fB\-x\fPwidth \fB\-y\fPlength \fB\-n\fP login \fB\-h\fP host accounting_file.DEThe.B \-xand.B \-yoptions specify the horizontal and vertical pagesize in pixels (from the.B pxand.B pyentries in the printcap file).The rest of the arguments are the same as for the.B iffilter.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -