lpf
Hurricane Electric Internet Services
NAME
lpf - general printer filter
SYNOPSIS
lpf -Pprinter -wwidth -llength -xwidth -ylength [ -c ]
-Kcontrolfilename -Lbnrname [ -iindent ] [ -Zoptions ] [
-Cclass ] [ -Jjob ] [ -Raccntname ] -nlogin -hHost -Ffor-
mat [ -Tx -Dlevel ] [ affile ]
DESCRIPTION
Lpf is a general printer filter. Usually it is used as
filter in the printcap file and is called by lpd.
The following options passes lpd by default:
-Pprinter
The name of the printer.
-wwidth
The page width in chars, as given in the :pw field in
the printcap file
-llength
The page length in lines, as given in the :pl field
in the printcap file
-xwidth
The page width in pixels, as given in the :px field
in the printcap file
-ylength
The page length in pixels, as given in the :py field
in the printcap file
-Kcontrolfilename
The name of the control file.
-Lbnrname
The banner name. This is set by the lpr -T option.
-nlogin
The user login name.
-hHost
The host where the job was submitted.
-Fformat
The job format from the lpr -F option or other
option.
These options are optionally set by lpd:
-Zoptions
Extra options. They are passed from the -Z parameter
given on the lpr command command line and can be
interpreted by the filter.
These remaining options can be added to the filter entry
in the printcap file:
-c ignore control characters, set by lpr -b (binary) or
-l (literal) options.
-iindent
The indentation amount, set by lpr -i indent option.
-Cclass
The class name, set by lpr -C class option.
-Jjob
The job name, set by lpr -J job option.
-Raccntname
The name of the accounting file, from printcap infor-
mation.
-Dlevel
Sets debug level. The level must be an integer, a
nonzero value switches debugging on.
FILES
The files used by LPRng are set by values in the printer
configuration file. The following are a commonly used set
of default values.
/etc/lpd.conf LPRng configuration file
/etc/printcap printer description file
/etc/lpd.perms printer permissions
/var/spool/printer* spool directories
/var/spool/printer*/printer lock file for queue control
/var/spool/printer*/control.printer queue control
/var/spool/printer*/active.printer active job
/var/spool/printer*/log.printer log file
SEE ALSO
lpd.conf(5), lpc(8), lpd(8), lpr(1), lpq(1), lprm(1),
printcap(5), lpd.perms(5), pr(1).
DIAGNOSTICS
Most of the diagnostics are self explanatory.
If you are puzzled over the exact cause of failure,
set the debugging level on (-D5) and run again.
The debugging information will
help you to pinpoint the exact cause of failure.
HISTORY
LPRng is a enhanced printer spooler system, with function-
ality similar to the Berkeley LPR software, and is derived
from the PLP (Public Line Printer) software, version 4.0.
LPRng has many advanced features, which are described in
LPRng - An Enhanced Line Printer Spooler by Patrick Pow-
ell, San Diego State University (papowell@sdsu.edu), et
al. It is available from dickory.sdsu.edu:/pub/LPRng.
The LPRng software is based on PLP4.0, supported and
extended by Justin Mason (jmason@iona.ie), which is avail-
able from ftp://ftp.iona.ie/pub/PLP4.0. Justin greatly
aided in the design and development of many of the soft-
ware features, as well as contributing a large number of
bug fixes, design reviews, and other suggestions.
Hurricane Electric Internet Services
Copyright (C) 1998
Hurricane Electric.
All Rights Reserved.