Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lpr(1) — SunOS 0.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpq(1)

lprm(1)

pr(1)

symlink(2)

printcap(5)

lpd(8)

LPR(1)  —  User’s Manual — Commands

NAME

lpr − off line print

SYNOPSIS

lpr [ −Pprinter ] [ −#num ] [ −Cclass ] [ −Jjob ] [ −Ttitle ] [ −wwidth ]

[ −pltvcrmhs ] [ file ... ]

DESCRIPTION

Lpr prints the named files when facilities become available to print them.  If no files are specified, lpr prints the standard input, so that lpr may be used conveniently as the last program in a pipeline of text processing commands.  Lpr uses a spooling daemon to ensure that multiple files from different users are correctly synchronized and get printed in the right order. 

OPTIONS

−Pprinter
Force output to the specified printer.  Normally, the default printer is used (site dependent), or the value of the environment variable PRINTER is used. 

−pUse pr(1) to prepare the files with headers and footers before actually printing them.

−lUse a filter which allows control characters to be printed and supresses page breaks. 

−tThe files are assumed to contain data from troff(1).

−vThe files are assumed to contain data from vplot(1).

−cThe files are assumed to contain data produced by cifplot. 

−rRemove the file upon completion of spooling. 

−mSend mail upon completion. 

−hSuppress the printing of the burst page. 

−sUse symbolic links. Usually files are copied to the spool directory. 

−CclassClass is a classification for use on the burst page.  For example,

lpr −C “Lincoln Labs" abraham.c
would replace the system name on the burst page by Lincoln Labs, and print the file abraham.c.

−Jjobname
Jobname is the job name to print on the burst page.  Normally, the first file name is used. 

−TtitleUse title as the title used by pr(1) instead of the file name.

−#numPrint num copies of each file named.  For example,

lpr −#3 toplevel.c input.c output.c
prints three copies of toplevel.c, followed by three copies of input.c, followed by three copies of output.c. On the other hand,

cat toplevel.c input.c output.c | lpr −#3
prints three copies of the concatenation of the files.

−wwidth
Use width as the page width for pr. 

−sUse symbolic links to link data files rather than trying to copy them so large files can be printed.  This means the files should not be modified or removed until they have been printed. 

FILES

/etc/passwdpersonal identification
/etc/printcapprinter capabilities data base
/usr/lib/lpd∗line printer daemons
/usr/spool/∗directories used for spooling
/usr/spool/∗/cf∗daemon control files
/usr/spool/∗/df∗data files specified in "cf" files
/usr/spool/∗/tf∗temporary copies of "cf" files

SEE ALSO

lpq(1), lprm(1), pr(1), symlink(2), printcap(5), lpd(8)

DIAGNOSTICS

If you try to spool too large a file, it will be truncated.  lpr will object to printing binary files.  Diagnostics may be printed in the daemon’s log file regarding missing spool files by lpd(8).

Sun System Release 0.3  —  18 April 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026