Manual Reference Pages - LPRPS (8)
lprps - lpr PostScript communication filter
-n login_name ]
-h host ]
-j job ]
-p printer ]
-s status_file ]
lprps handles communication with a PostScript printer for lpr output filters.
The PostScript printer must be connected using a bidirectional serial channel.
Each output filter should be a pipeline with
lprps $@ as the last command.
The other commands in the pipeline should handle conversion into PostScript
and possibly page reversal.
The command-line syntax of
lprps is such that any argument vector
lpd might pass to an output file is a legal argument vector for
psof output filter can be used in conjunction with
Output generated by the PostScript document and errors caused by
defects in the PostScript file are mailed back to the user
(identified by the
-M option is given, this output will instead be written
to the standard error file,
which the spooling system will copy
to the error logging file specified by the
(some versions of lpr have a bug which prevents this happening.)
(such as out of paper errors)
are logged using syslog with the
lprps attempts to update the status file
(the contents of which are displayed by lpq)
with the printers status.
lprps supports printer accounting.
If this facility is required,
a file to contain the accounting information must be specified in
af capability in the printcap file.
This file should exist, have mode 644 and be owned by daemon.
The name of this file will be passed to
lprps in the
For each job,
lprps will append to this file an accounting record specifying the users name
and host together with the number of pages used.
command can then be used to generate an accounting report.
The accounting information should be reliable except when
the printer has been turned off or disconnected in the middle of a job.
The following options can be supplied by the output filter script
The following options are automatically supplied by the spooling system:
user is not a real user;
errors from jobs for
user will not be mailed back to
user but will instead be written to stderr.
This option is intended for sites that
have software packages (eg Interleaf) that spool users jobs using
another userid (eg daemon).
Dont mail errors back to the user;
errors will be written to stderr.
The following options are not supplied by the standard version of
the lpr spooling system and
lprps does not require them.
However, the lpr system can be modified to supply these options;
lprps will work slightly better with such a system.
-n name ||
The users login name is
-h host ||
The users host machine is
These options are ignored.
-j job ||
The job name is
lprps will include this in messages mailed to the user.
-p printer ||
The printer name is
lprps will use this in some error messages,
and in messages written to the status file.
If this option is not specified,
lprps will attempt to deduce the printer name from the contents of
the status file.
This option might also be specified in the output filter script.
-s status_file ||
The name of the status file is
status_file. The name used by the spooling system for the status file
can be changed by the
st capability in the printcap entry.
If this option is not specified,
lprps will assume that the name is the default
status. This option might also be specified in the output filter script.
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.