⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 printcap.5

📁 早期freebsd实现
💻 5
字号:
.\" Copyright (c) 1983, 1991, 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..\".\"     @(#)printcap.5	8.2 (Berkeley) 12/11/93.\".Dd December 11, 1993.Dt PRINTCAP 5.Os BSD 4.2.Sh NAME.Nm printcap.Nd printer capability data base.Sh SYNOPSIS.Nm printcap.Sh DESCRIPTIONThe.Nm Printcapfunctionis a simplified version of the.Xr termcap 5data baseused to describe line printers.  The spooling system accesses the.Nm printcapfile every time it is used, allowing dynamicaddition and deletion of printers.  Each entry in the data baseis used to describe one printer.  This data base may not besubstituted for, as is possible for .Xr termcap ,because it may allow accounting to be bypassed..PpThe default printer is normally .Em lp ,though the environment variable.Ev PRINTERmay be used to override this.  Each spooling utility supports an option,.Fl P Ar printer ,to allow explicit naming of a destination printer..PpRefer to the.%T "4.3 BSD Line Printer Spooler Manual"for a complete discussion on how to setup the database for a given printer..Sh CAPABILITIESRefer to.Xr termcap 5for a description of the file layout..Bl -column Namexxx Typexx "/var/spool/lpdxxxxx".Sy Name	Type	Description.It "af	str" Ta Dv NULL Ta No "name of accounting file".It "br	num	none	if lp is a tty, set the baud rate".Pf ( Xr ioctl 2call).It "cf	str" Ta Dv NULL Ta No "cifplot data filter".It "df	str" Ta Dv NULL Ta No "tex data filter".Pf ( Tn DVIformat).It "fc	num	0	if lp is a tty, clear flag bits".Pq Pa sgtty.h.It "ff	str" Ta So Li \ef Sc Ta No "string to send for a form feed".It "fo	bool	false	print a form feed when device is opened".It "fs	num	0	like `fc' but set bits".It "gf	str" Ta Dv NULL Ta No "graph data filter".Pf ( Xr plot 3format.It "hl	bool	false	print the burst header page last".It "ic	bool	false	driver supports (non standard) ioctl to indent printout".It "if	str" Ta Dv NULL Ta No "name of text filter which does accounting".It "lf	str" Ta Pa /dev/console Ta No "error logging file name".It "lo	str" Ta Pa lock Ta No "name of lock file".It "lp	str" Ta Pa /dev/lp Ta No "device name to open for output".It "mx	num	1000	maximum file size (in".Dv BUFSIZblocks), zero = unlimited.It "nd	str" Ta Dv NULL Ta No "next directory for list of queues (unimplemented)".It "nf	str" Ta Dv NULL Ta No "ditroff data filter (device independent troff)".It "of	str" Ta Dv NULL Ta No "name of output filtering program".It "pc	num	200	price per foot or page in hundredths of cents".It "pl	num	66	page length (in lines)".It "pw	num	132	page width (in characters)".It "px	num	0	page width in pixels (horizontal)".It "py	num	0	page length in pixels (vertical)".It "rf	str" Ta Dv NULL Ta No "filter for printing".Tn FORTRANstyle text files.It "rg	str" Ta Dv NULL Ta No "restricted group. Only members of group allowed access".It "rm	str" Ta Dv NULL Ta No "machine name for remote printer".It "rp	str	``lp''	remote printer name argument".It "rs	bool	false	restrict remote users to those with local accounts".It "rw	bool	false	open the printer device for reading and writing".It "sb	bool	false	short banner (one line only)".It "sc	bool	false	suppress multiple copies".It "sd	str" Ta Pa /var/spool/lpd Ta No "spool directory".It "sf	bool	false	suppress form feeds".It "sh	bool	false	suppress printing of burst page header".It "st	str" Ta Pa status Ta No "status file name".It "tf	str" Ta Dv NULL Ta No "troff data filter (cat phototypesetter)".It "tr	str" Ta Dv NULL Ta No "trailer string to print when queue empties".It "vf	str" Ta Dv NULL Ta No "raster image filter".It "xc	num	0	if lp is a tty, clear local mode bits".Pq Xr tty 4.It "xs	num	0	like `xc' but set bits".El.PpIf the local line printer driver supports indentation, the daemonmust understand how to invoke it..Sh FILTERSThe.Xr lpd 8daemon creates a pipeline of.Em filtersto process files for various printer types.The filters selected depend on the flags passed to.Xr lpr 1 .The pipeline set up is:.Bd -literal -offset indentp	pr | if	regular text + pr(1)none	if	regular textc	cf	cifplotd	df	DVI (tex)g	gf	plot(3)n	nf	ditrofff	rf	Fortrant	tf	troffv	vf	raster image.Ed.PpThe.Sy iffilter is invoked with arguments:.Bd -filled -offset indent.Cm if.Op Fl c.Fl w Ns Ar width.Fl l Ns Ar length.Fl i Ns Ar indent.Fl n Ar login.Fl h Ar host acct-file.Ed.PpThe.Fl cflag is passed only if the.Fl lflag (pass control characters literally)is specified to.Xr lpr .The.Ar Widthfunctionand.Ar lengthspecify the page width and length(from.Cm pwand.Cm plrespectively) in characters.The.Fl nand.Fl hparameters specify the login name and host name of the ownerof the job respectively.The.Ar Acct-filefunctionis passed from the.Cm af.Nm printcapentry..PpIf no.Cm ifis specified,.Cm ofis used instead,with the distinction that.Cm ofis opened only once,while.Cm ifis opened for every individual job.Thus,.Cm ifis better suited to performing accounting.The.Cm ofis only given the.Ar widthand.Ar lengthflags..PpAll other filters are called as:.Bd -filled -offset indent.Nm filter.Fl x Ns Ar width.Fl y Ns Ar length.Fl n Ar login.Fl h Ar host acct-file.Ed.Ppwhere.Ar widthand.Ar lengthare represented in pixels,specified by the.Cm pxand.Cm pyentries respectively..PpAll filters take.Em stdinas the file,.Em stdoutas the printer,may log either to.Em stderror using.Xr syslog 3 ,and must not ignore.Dv SIGINT . .Sh LOGGINGError messages generated by the line printer programs themselves(that is, the.Xr lp Ns *programs)are logged by.Xr syslog 3using the.Dv LPRfacility.Messages printed on.Em stderrof one of the filtersare sent to the corresponding.Cm lffile.The filters may, of course, use.Xr syslogthemselves..PpError messages sent to the console have a carriage return and a linefeed appended to them, rather than just a line feed..Sh SEE ALSO.Xr termcap 5 ,.Xr lpc 8 ,.Xr lpd 8 ,.Xr pac 8 ,.Xr lpr 1 ,.Xr lpq 1 ,.Xr lprm 1.Rs.%T "4.3 BSD Line Printer Spooler Manual".Re.Sh HISTORYThe.Nmfile format appeared in.Bx 4.2 ..

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -