Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lpr(1) — Ultrix WS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpq(1)

lprm(1)

pr(1)

symlink(2)

printcap(5)

lpc(8)

lpd(8)

lpr(1)

NAME

lpr − off line print

SYNTAX

lpr [ option...  ] [ file...  ]

DESCRIPTION

The lpr command uses a spooling daemon to print the named files when facilities become available.  If no names appear, the standard input is assumed. The −P option may be used to force output to a specific printer.  Normally, the default printer is used (site dependent), or the value of the environment variable PRINTER is used. 

OPTIONS

The following single letter options are used to notify the line printer spooler that the files are not standard text files.  The spooling daemon will use the appropriate filters to print the data accordingly. 

−pUse pr(1) to format the files (equivalent to print).

−PUse to direct output to a specific printer

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

−tThe files are assumed to contain data from troff() (cat phototypesetter commands).

−nThe files are assumed to contain data from ditroff (device independent troff ).

−dThe files are assumed to contain data from TeX (DVI format from Stanford). 

−gThe files are assumed to contain standard plot data as produced by the plot() routines (see also plot() ) for the filters used by the printer spooler).

−vThe files are assumed to contain a raster image for devices. 

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

−fUse a filter which interprets the first character of each line as a standard FORTRAN carriage control character. 

The remaining single letter options are:

−rRemove the file upon completion of spooling or upon completion of printing (with the −s option). 

−mSend mail upon completion. 

−hSuppress the printing of the burst page. 

−xTransparent filter.  Allows data to be sent to printer unchanged. 

The following options take an argument:

−CThe argument is the job classification for use on the burst page.  For example,

lpr −C EECS foo.c

causes the system name, the name returned by hostname(,), to be replaced on the burst page by EECS, and the file foo.c to be printed.

−JThe argument is the job name to print on the burst page.  Normally, the first file’s name is used. 

−TThe argument is the title used by pr(1) instead of the file name. 

−#
Produces multiple copies of output.  The argument num is the number of copies desired of each file named.  For example,

lpr −#3 foo.c bar.c more.c

results in 3 copies of the file foo.c, followed by 3 copies of the file bar.c, etc.  On the other hand,

cat foo.c bar.c more.c | lpr −#3

will give three copies of the linked files. 

−iCauses the output to be indented the specified number of blank spaces.  If a numeric number is not specified, the output is indented 8 blank characters.  This option is to be used in conjunction with the −f and −l options only. 

−wTakes the immediately following number to be the page width for pr. 

−zTakes the immediately following number to be the page length for pr. 

−sUses symlink() to link data files rather than trying to copy them. This means the files should not be modified or removed until they have been printed.

−1234
Specifies a font to be mounted on font position i.  The daemon will construct a .railmag file referencing /usr/lib/vfont/name.size.

RESTRICTIONS

Fonts for troff and TeX reside on the host with the printer. It is currently not possible to use local font libraries.

DIAGNOSTICS

Files with more than 1025024 bytes which are spooled to a remote machine are truncated to 1025024 bytes.  The lpr command will not print binary files. If a user other than root prints a file and spooling is disabled, lpr will print a disabled message and will not put jobs in the queue. If a connection to lpd on the local machine cannot be made, lpr will print that the daemon cannot be started. Diagnostics may be printed in the daemon’s log file regarding missing spool files by using lpd.

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), lpc(8), lpd(8)

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