printcap.5

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 5 代码 · 共 317 行

5
317
字号
.\" V4.0 source updated for V4.Titanium..\".\" Updated on 26.10.90 by Karen Campbell, OSCR-Europe.\".\" Submitted for FT 9-Nov-90..\".\" Print this document on a PostScript printer using the command line.\"	tbl filename | ditroff \-Tps \-man | devps | lpr.\".\".TH printcap 5.SH Nameprintcap \- printer capability data base.SH Syntax.B /etc/printcap.SH Description.NXR "printcap file" "format".NXR "printer" "adding".NXR "printer" "deleting"The.PN printcapfile describes the printers available on a system.There is one entry in the file for each printer, and the entry describesthe printer capabilities.A change to the.PN printcapfile immediately affects the spooling system, unless the affected queue isactive.In this case, the spooling queue should be stopped and restarted.For more information, refer to.MS lpc 8 . .PPEntries in the.PN printcapfile comprise a number of fields separated by colons (:).The first entry for each printer gives the names that are known for theprinter.The names are separated by the pipe character (|).The first name is the name of the printer that is displayed whenyou use the.PN lpccommand to show the status of a queue.Second and subsequent names are alternative names for theprinter.You can use the last name to fully identify the printer, including blanksfor readability if necessary..PPThe .PN /etc/printcapfile is created when the system is installed.After this, you can modify the.PN printcapfile by using the.PN lprsetupscript or a suitable editor.The.PN lprsetupscript is described on the.MS lprsetup 8reference page and in the \fIGuide to System Environment Setup\fP..PPWhen a file is printed using the.PN lprcommand, the file can be sent to a named printer.If a printer is not named, and a print name is not defined by the PRINTERenvironment variable, the file is sent to the printer with the name ``lp''in the.PN printcapfile.The.PN printcapfile should always have a printer with the name ``lp''..SH ExamplesThe following examples show the format of entries created using the.PN lprsetupscript..PPA typical entry for a printer in the.PN printcapfile would be:.EXlp|lp0|nlp|ln03 in room 4:\\	:af=/usr/adm/lpacct:\\	:br#4800:\\	:fc#0177777:\\	:fs#03:\\	:if=/usr/lib/lpdfilters/ln03of:\\	:lf=/usr/adm/lperr:\\	:lp=/dev/tty00:\\	:mx#0:\\	:of=/usr/lib/lpdfilters/ln03of:\\	:pl#66:\\	:pw#80:\\	:sd=/usr/spool/lpd:\\	:xc#0177777:\\	:xs#044000:.EEA typical entry for a PrintServer in the.PN printcapfile would be:.EXlp0|lp|0:     :ct=network:\\     :lf=/usr/adm/lpd-errs/ex1:\\     :of=lpscomm dotty %U %H %J:\\      :ps=LPS:\\     :sd=/usr/spool/lpd/ex1:\\     :uv=4.0:\\     :Da=ascii:\\     :Dl=/usr/lib/lpdfilters/lps_v3.a:\\     :Sd=a:\\.EEFor more information, refer to the \fIGuide to System Environment Setup\fP..SH CapabilitiesThere are three types of capabilities in the.PN printcapfile: Boolean, string, and numeric.String valued capabilities are processed before use.For more details, refer to.MS termcap 5 .The following list contains the names of capabilities that can be used in the.PN printcapfile:.PP.TStab(@);lfHB lfHB lfHB lfHBlw lw lw lw.Name@Type@Default@Description.sp 4paf@str@\fInot set\fR@Accounting file namebr@num@\fInot set\fR@Baud rate, set if lp is a tty @ @ @(ioctl call)cf@str@\fInot set\fR@Cifplot data filterct@str@dev@Connection type - only valid  @ @ @when \fBuv=psv4.0\fR (choices are: @ @ @dev, lat, remote, network)db@num@0@Debugging level (choices are: @ @ @0 (none), 1 (normal), 10 @ @ @(do not execute job, describe @ @ @actions to log file))df@str@\fInot set\fR@Text data filter (DVI format)du@num@ @Daemon user id      fc@num@0@If lp is a tty, clear octal @ @ @T{flag values (\c.MS tty 4sg_flags)T}ff@str@\ef@String to send for a form feedfo@bool@false@Print a form feed when device @ @ @is openedfs@num@0@If lp is a tty, set octal flag @ @ @T{values (\c.MS tty 4sg_flags)T}gf@str@\fInot set\fR@Graph data filter (plot(1g) @ @ @format)if@str@\fInot set\fR@Text filter that does @ @ @accountinglf@str@/dev/console@Error logging file namelo@str@lock@Lock file namelp@str@/dev/lp@Device name to open for outputmc@num@ @Maximum number of copies allowedmx@num@1000@Maximum file size (in 1kbyte @ @ @blocks), 0 = unlimitednf@str@\fInot set\fR@Ditroff (device independent @ @ @troff) data filter of@str@\fInot set\fR@Output filtering program nameop@str@\fInot set\fR@The entry in the ``Name'' field @ @ @for LAT port characteristicsos@str@\fInot set\fR@Service name supported on some @ @ @terminal serverspl@num@66@Page length (in lines)pp@str@/bin/pr@Print filterps@str@non_PS@Printer type (choices are: @ @ @non_PS, LPS)pw@num@132@Page width (in characters)px@num@0@Page width in pixels py@num@0@Page length in pixels rf@str@\fInot set\fR@Filter for printing Fortran style @ @ @text filesrm@str@\fInot set\fR@Machine name for remote printerrp@str@lp@Remote printer name argumentrs@bool@false@Restrict remote users to those @ @ @with local accountsrw@bool@false@Open the printer device for @ @ @reading as well as writingsb@bool@false@Short banner (one line only)sc@bool@false@Suppress multiple copiessd@str@/usr/spool/lpd@Spool directorysf@bool@false@Suppress form feedssh@bool@false@Suppress printing of banner @ @ @page headerst@str@status@Status file nametf@str@\fInot set\fR@Troff data filter (CAT @ @ @phototypesetter)tr@str@\fInot set\fR@Trailer string to print when @ @ @queue emptiests@str@\fInot set\fR@LAT terminal server node nameuv@str@3.0@ULTRIX version number (choices @ @ @are: 3.0, 4.0)vf@str@\fInot set\fR@Raster image filterxc@num@0@If lp is a tty, clear local @ @ @T{mode octal values (\c.MS tty 4``Local mode'')T}xf@str@\fInot set\fR@Transparent mode filterxs@num@0@If lp is a tty, set local mode @ @ @T{octal values (\c.MS tty 4``Local mode'')T}.TE.PPThe \fBct\fR entry specifies the connection type; these are device, LAT, remote or network.To enable PrintServer support you must ensure the.PN :ct=network:entry is included in the.PN printcapfile for the appropriate print queue..PPThe \fBuv\fR entry specifies the version number of the ULTRIX operating system. This entry allows backward compatibility with earlier versions of the printsystem.Ensure that.PN :uv=4.0: ,otherwise the print queue functions as it did in Version 3.1 orearlier and you will not be able to access the features for PostScriptsupport..PPThe \fBps\fR entry specifies the printer type.You must ensure the.PN :ps=LPS:entry is included in the .PN printcapfile for all print queues using PrintServer features..PPThe following capabilities set defaults for PostScript printers.You should refer to the.MS lpr 1reference page for the choices available for each capability.The equivalent.PN lproptions are shown for reference purposes..PP.TStab(@);lfHB lfHB lfHB lfHB lfHBlw lw lw lw lw.Name@Type@Default@Description@lpr Option.sp 4pDa@str@postscript@Data type@\-DIt@str@\fInot set\fR@Input tray@\-ILu@str@\fInot set\fR@Layup definition file@\-LMl@str@\fInot set\fR@Record messages@\-MNu@num@\fInot set\fR@Number up@\-NOr@str@portrait@Orientation@\-OOt@str@\fInot set\fR@Output tray@\-oPs@str@\fInot set\fR@Page size@\-FSd@str@a@Default sheet size@ @ @ @(see below)@Si@str@\fInot set\fR@Sides@\-KSs@str@\fInot set\fR@Sheet size@\-SUl@str@<last page>@Upper page limit@\-ZXf@str@xlator_call@Translator dispatch@ @ @ @program@ Lf@str@layup@Layup to PostScript@ @ @ @translatorDl@str@\fInot set\fR@Name of the device@.TE.PPThe \fBSs\fR capability specifies a mandatory sheet size.The print job fails if this sheet size is not available with theprinter..PPThe \fBSd\fR capability specifies a preferred sheet size and is overriddenby the Ss capability and the.PN lpr\0\-Scommand.For American A size paper (8.5 x 11 inches) ensure the entry is.PN :Sd=a: .For European A4 size paper (8.3 x 11.7 inches) ensure the entry is .PN :Sd=a4: .If the sheet size specified by the .PN Sd capability is not available,the print job does not fail, but is printed on the default sheet sizefor the printer..PPThe \fBDl\fR capability specifies the name of the device control module library file.If the PrintServer supporting host is Version 2.0 or 2.1, the \fBDl\fRentry should be:.EX:Dl=/usr/lib/lpdfilters/lps_v2.a:\\.EEIf the PrintServer supporting host is Version 3.0, the \fBDl\fR entry should be:.EX:Dl=/usr/lib/lpdfilters/lps_v3.a:\\.EEIf the \fBDl\fR entry does not match the version of the PrintServer supportinghost software, the job flag page prints, but the job itself may not..SH See Alsolpq(1), lpr(1), lprm(1), termcap(5), lpc(8), lpd(8), pac(8).br\fIGuide to System Environment Setup\fP

⌨️ 快捷键说明

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