|
NAMElprps - lpr PostScript communication filterSYNOPSISlprps [ -M ] [ -Uuser ] [ -c ] [ -wn ] [ -ln ] [ -xn ] [ -yn ] [ -in ] [ -n login_name ] [ -h host ] [ -j job ] [ -p printer ] [ -s status_file ] [ accounting_file ]DESCRIPTIONlprps 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 which lpd might pass to an output file is a legal argument vector for lprps. The psof output filter can be used in conjunction with lprps.Output generated by the PostScript document and errors caused by defects in the PostScript file are mailed back to the user (identified by the -n and -h options). If 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 lf capability (some versions of lpr have a bug which prevents this happening.) Other errors (such as `out of paper' errors) are logged using syslog with the LOG_LPR facility. lprps attempts to update the status file (the contents of which are displayed by lpq) with the printer's 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 accounting_file argument. For each job, lprps will append to this file an accounting record specifying the user's name and host together with the number of pages used. The pac(8) 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. OPTIONSThe following options can be supplied by the output filter script that calls lprps:
The following options are automatically supplied by the spooling system:
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.
SEE ALSOtextps(1), psrev(1), syslog.conf(5), psif(8), psof(8), pac(8), lpd(8) Visit the GSP FreeBSD Man Page Interface. |