IPnom Home • Manuals • FreeBSD

 FreeBSD Man Pages

Man Sections:Commands (1)System Calls (2)Library Functions (3)Device Drivers (4)File Formats (5)Miscellaneous (7)System Utilities (8)
Keyword Live Search (10 results max):
 Type in part of a command in the search box.
 
Index:
  a.out(5)
  acct(5)
  adduser.conf(5)
  aliases(5)
  amd.conf(5)
  auth.conf(5)
  big5(5)
  bluetooth.hosts(5)
  bluetooth.protocols(5)
  bootparams(5)
  bootptab(5)
  config(5)
  core(5)
  crontab(5)
  ctm(5)
  cvs(5)
  devd.conf(5)
  devfs(5)
  device.hints(5)
  dhclient.conf(5)
  dhclient.leases(5)
  dhcp-eval(5)
  dhcp-options(5)
  dir(5)
  dirent(5)
  disktab(5)
  editrc(5)
  elf(5)
  ethers(5)
  euc(5)
  eui64(5)
  exports(5)
  fbtab(5)
  fdescfs(5)
  finger.conf(5)
  forward(5)
  fs(5)
  fstab(5)
  ftpchroot(5)
  gb18030(5)
  gb2312(5)
  gbk(5)
  gettytab(5)
  groff_font(5)
  groff_out(5)
  groff_tmac(5)
  group(5)
  hcsecd.conf(5)
  hesiod.conf(5)
  hosts(5)
  hosts.equiv(5)
  hosts.lpd(5)
  hosts_access(5)
  hosts_options(5)
  inetd.conf(5)
  info(5)
  inode(5)
  intro(5)
  ipf(5)
  ipnat(5)
  ipnat.conf(5)
  ipsend(5)
  isdnd.acct(5)
  isdnd.rates(5)
  isdnd.rc(5)
  kbdmap(5)
  keycap(5)
  keymap(5)
  krb5.conf(5)
  lastlog(5)
  libarchive-formats(5)
  libmap.conf(5)
  link(5)
  linprocfs(5)
  loader.conf(5)
  login.access(5)
  login.conf(5)
  mac.conf(5)
  magic(5)
  mailer.conf(5)
  make.conf(5)
  malloc.conf(5)
  master.passwd(5)
  moduli(5)
  motd(5)
  msdos(5)
  msdosfs(5)
  mskanji(5)
  named.conf(5)
  netconfig(5)
  netgroup(5)
  netid(5)
  networks(5)
  newsyslog.conf(5)
  nologin(5)
  nsmb.conf(5)
  nsswitch.conf(5)
  ntp.conf(5)
  ntp.keys(5)
  opieaccess(5)
  opiekeys(5)
  passwd(5)
  pbm(5)
  pccard.conf(5)
  periodic.conf(5)
  pf.conf(5)
  pf.os(5)
  phones(5)
  printcap(5)
  procfs(5)
  protocols(5)
  publickey(5)
  pw.conf(5)
  quota.group(5)
  quota.user(5)
  radius.conf(5)
  rc.conf(5)
  rcsfile(5)
  remote(5)
  resolv.conf(5)
  resolver(5)
  rhosts(5)
  rndc.conf(5)
  rpc(5)
  rrenumd.conf(5)
  rtadvd.conf(5)
  services(5)
  shells(5)
  ssh_config(5)
  sshd_config(5)
  stab(5)
  style.Makefile(5)
  sysctl.conf(5)
  syslog.conf(5)
  tacplus.conf(5)
  tar(5)
  term(5)
  termcap(5)
  terminfo(5)
  texinfo(5)
  tmac(5)
  ttys(5)
  tzfile(5)
  usbd.conf(5)
  utf2(5)
  utf8(5)
  utmp(5)
  uuencode(5)
  uuencode.format(5)
  vgrindefs(5)
  wtmp(5)

printcap(5)

NAME

     printcap -- printer capability data base


SYNOPSIS

     printcap


DESCRIPTION

     The Printcap function is a simplified version of the termcap(5) data base
     used to describe line printers.  The spooling system accesses the
     printcap file every time it is used, allowing dynamic addition and dele-
     tion of printers.	Each entry in the data base is used to describe one
     printer.  This data base may not be substituted for, as is possible for
     termcap(5), because it may allow accounting to be bypassed.

     The default printer is normally lp, though the environment variable
     PRINTER may be used to override this.  Each spooling utility supports an
     option, -P printer, to allow explicit naming of a destination printer.

     Refer to the 4.3 BSD Line Printer Spooler Manual for a complete discus-
     sion on how to setup the database for a given printer.


CAPABILITIES

     Refer to termcap(5) for a description of the file layout.

     Name	Type	  Default		 Description
     af 	str	  NULL			 name of accounting file
     br 	num	  none			 if lp is a tty, set the baud
						 rate (ioctl(2) call)
     cf 	str	  NULL			 cifplot data filter
     ct 	num	  120			 TCP connection timeout in
						 seconds
     df 	str	  NULL			 tex data filter (DVI format)
     ff 	str	  `\f'			 string to send for a form
						 feed
     fo 	bool	  false 		 print a form feed when device
						 is opened
     gf 	str	  NULL			 graph data filter (plot(3)
						 format
     hl 	bool	  false 		 print the burst header page
						 last
     ic 	bool	  false 		 driver supports (non
						 standard) ioctl to indent
						 printout
     if 	str	  NULL			 name of text filter which
						 does accounting
     lf 	str	  /dev/console		 error logging file name
     lo 	str	  lock			 name of lock file
     lp 	str	  /dev/lp		 device name to open for
						 output, or port@machine to
						 open a TCP socket
     mc 	num	  0			 maximum number of copies
						 which can be requested on
						 lpr(1), zero = unlimited
     ms 	str	  NULL			 if lp is a tty, a comma-
						 separated, stty(1)-like list
						 describing the tty modes
     mx 	num	  0			 maximum file size (in BUFSIZ
						 hundredths of cents
     pl 	num	  66			 page length (in lines)
     pw 	num	  132			 page width (in characters)
     px 	num	  0			 page width in pixels
						 (horizontal)
     py 	num	  0			 page length in pixels
						 (vertical)
     rc 	bool	  false 		 when sending to a remote
						 host, resend copies (see
						 below)
     rf 	str	  NULL			 filter for printing FORTRAN
						 style text files
     rg 	str	  NULL			 restricted group. Only
						 members of group allowed
						 access
     rm 	str	  NULL			 machine name for remote
						 printer
     rp 	str	  lp			 remote printer name argument
     rs 	bool	  false 		 restrict remote users to
						 those with local accounts
     rw 	bool	  false 		 open the printer device for
						 reading and writing
     sb 	bool	  false 		 short banner (one line only)
     sc 	bool	  false 		 suppress multiple copies
     sd 	str	  /var/spool/lpd	 spool directory
     sf 	bool	  false 		 suppress form feeds
     sh 	bool	  false 		 suppress printing of burst
						 page header
     sr 	str	  NULL			 file name to hold statistics
						 of each datafile as it is
						 received
     ss 	str	  NULL			 file name to hold statistics
						 of each datafile as it is
						 sent
     st 	str	  status		 status file name
     tf 	str	  NULL			 troff data filter (cat
						 phototypesetter)
     tr 	str	  NULL			 trailer string to print when
						 queue empties
     vf 	str	  NULL			 raster image filter

     Each two-letter capability has a human-readable alternate name.

     Short form    Long form
     af 	   acct.file
     br 	   tty.rate
     cf 	   filt.cifplot
     ct 	   remote.timeout
     df 	   filt.dvi
     du 	   daemon.user
     ff 	   job.formfeed
     fo 	   job.topofform
     gf 	   filt.plot
     hl 	   banner.last
     if 	   filt.input
     lf 	   spool.log
     lo 	   spool.lock
     lp 	   tty.device
     px 	   page.pwidth
     py 	   page.plength
     rc 	   remote.resend_copies
     rf 	   filt.fortran
     rg 	   daemon.restrictgrp
     rm 	   remote.host
     rp 	   remote.queue
     rs 	   daemon.restricted
     rw 	   tty.rw
     sb 	   banner.short
     sc 	   job.no_copies
     sd 	   spool.dir
     sf 	   job.no_formfeed
     sh 	   banner.disable
     sr 	   stat.recv
     ss 	   stat.send
     st 	   spool.status
     tf 	   filt.troff
     tr 	   job.trailer
     vf 	   filt.raster

     If the local line printer driver supports indentation, the daemon must
     understand how to invoke it.


FILTERS

     The lpd(8) daemon creates a pipeline of filters to process files for var-
     ious printer types.  The filters selected depend on the flags passed to
     lpr(1).  The pipeline set up is:

	   p	   pr | if regular text + pr(1)
	   none    if	   regular text
	   c	   cf	   cifplot
	   d	   df	   DVI (tex)
	   g	   gf	   plot(3)
	   n	   nf	   ditroff
	   f	   rf	   Fortran
	   t	   tf	   troff
	   v	   vf	   raster image

     The if filter is invoked with arguments:

	   if [-c] -wwidth -llength -iindent -n login -h host acct-file

     The -c flag is passed only if the -l flag (pass control characters liter-
     ally) is specified to lpr(1).  The Width function and length specify the
     page width and length (from pw and pl respectively) in characters.  The
     -n and -h parameters specify the login name and host name of the owner of
     the job respectively.  The Acct-file function is passed from the af
     printcap entry.

     If no if is specified, of is used instead, with the distinction that of
     is opened only once, while if is opened for every individual job.	Thus,
     if is better suited to performing accounting.  The of is only given the
     width and length flags.

     All other filters are called as:

	   filter -xwidth -ylength -n login -h host acct-file
     When printing to a remote printer using rm, it is possible to use either
     if or of.	If both are specified, of is ignored.  Both filters behave the
     same except that they are passed different arguments as above.  Specifi-
     cally, the output filter is terminated and restarted for each file trans-
     mitted.  This is necessary in order to pass the resulting size to the
     remote lpd(8).

     If the -p flag was passed to lpr(1), pr(1) is not executed locally, but
     is requested of the remote lpd(8).  Any input filtering via if will
     therefore happen before pr(1) is executed rather than afterwards.

     There are some models of network printers which accept jobs from lpd(8),
     but they ignore the control file for a job and simply print each data
     file as it arrives at the printer.  One side-effect of this behavior is
     that the printer will ignore any request for multiple copies as given
     with the -# flag on the lpr(1) command.  The rc entry will cause lpd(8)
     to resend each data file for each copy that the user originally
     requested.  Note that the rc entry should only be specified on hosts
     which send jobs directly to the printer.

     If lp is specified as port@machine (and rm is not in use), print data
     will be sent directly to the given port on the given machine.


TRANSFER STATISTICS

     When a print job is transfered to a remote machine (which might be
     another unix box, or may be a network printer), it may be useful to keep
     statistics on each transfer.  The sr and ss options indicate filenames
     that lpd should use to store such statistics.  A statistics line is writ-
     ten for each datafile of a job as the file is successfully transferred.
     The format of the line is the same for both the sending and receiving
     side of a transfer.

     Statistics on datafiles being received would be used on a print server,
     if you are interested in network performance between a variety of
     machines which are sending jobs to that print server.  The print server
     could collect statistics on the speed of each print job as it arrived on
     the server.

     Statistics on datafiles being sent might be used as a minimal accounting
     record, when you want to know who sent which jobs to a remote printer,
     when they were sent, and how large (in bytes) the files were.  This will
     not give include any idea of how many pages were printed, because there
     is no standard way to get that information back from a remote (network)
     printer in this case.


LOGGING

     Error messages generated by the line printer programs themselves (that
     is, the lpd(8) and related programs) are logged by syslog(3) using the
     LPR facility.  Messages printed on stderr of one of the filters are sent
     to the corresponding lf file.  The filters may, of course, use syslogd(8)
     themselves.

     Error messages sent to the console have a carriage return and a line feed
     appended to them, rather than just a line feed.


SEE ALSO

     lpq(1), lpr(1), lprm(1), hosts.lpd(5), termcap(5), chkprintcap(8),
     lpc(8), lpd(8), pac(8)

SPONSORED LINKS




Man(1) output converted with man2html , sed , awk