LP(1) General Commands Manual LP(1)NAME
lp - printer output
SYNOPSIS
lp [ option ... ] [ file ... ]
DESCRIPTION
Lp is a generalized output printing service. It can be used to queue files for printing, check a queue, or kill jobs in a queue. The
options are:
-d dest
Select the destination printer. If dest is list the currently available printers. In the absence of the destination is taken from
the environment variable LPDEST. Destination is the standard output. Destination is line printer port on a 386 machine.
-p proc
The given processor is invoked. The default processor is which tries to do the right thing for regular text, troff(1) output, or
tex(1) output. If no processing is desired may be specified.
-q Print the queue for the given destination. For some devices, include printer status.
-k Kill the job(s) given as subsequent arguments instead of file names for the given destination.
The remaining options may be used to affect the output at a given device. These options may not be applicable to all devices.
-c n Print n copies.
-f font
Set the font (default
-H Suppress printing of header page.
-i n Select paper input tray. n may be a number 0-9, the word man for the manual feed slot, and/or simplex or duplex to get single or
double sided output. Multiple input tray options may be specified if they are separated by commas.
-l n Set the number of lines per page to n.
-L Print pages in landscape mode (i.e. turned 90 degrees).
-m v Set magnification to v.
-n n Print n logical pages per physical page.
-o list
Print only pages whose page numbers appear in the comma-separated list of numbers and ranges. A range n-m means pages n through m;
a range -n means from the beginning to page n; a range n- means from page n to the end.
-r Reverse the order of page printing.
-x v Set the horizontal offset of the print image, measured in inches.
-y v Set the vertical offset of the print image, measured in inches.
EXAMPLES
eqn paper | troff -ms | lp -dsafari
Typeset and print a paper containing equations.
pr -l100 file | lp -l100 -fCW.8
Print a file in a small font at 100 lines per page.
lp -dstdout /dev/windows/3/window > doc.ps
Convert a bitmap to a postscript file.
SEE ALSO lp(8)
P. Glick, ``A Guide to the Lp Printer Spooler''.
BUGS
Not all options work with all output devices. Any user can kill any job. Lp will accept jobs from BSD style lpdaemons but cannot send
jobs to such systems.
LP(1)
Check Out this Related Man Page
posttek(1) User Commands posttek(1)NAME
posttek - PostScript translator for Tektronix 4014 files
SYNOPSIS
posttek [-c num] [-f name] [-m num] [-n num] [-o list] [-p mode] [-w num] [-x num] [-y num] [file...]
/usr/lib/lp/postscript/posttek
DESCRIPTION
The posttek filter translates Tektronix 4014 graphics files into PostScript and writes the results on the standard output. If no files are
specified, or if - is one of the input files, the standard input is read.
OPTIONS -c num Print num copies of each page. By default, only one copy is printed.
-f name Print text using font name. Any PostScript font can be used, although the best results will be obtained only with constant width
fonts. The default font is Courier.
-m num Magnify each logical page by the factor num. Pages are scaled uniformly about the origin which, by default, is located at the cen-
ter of each page. The default magnification is 1.0.
-n num Print num logical pages on each piece of paper, where num can be any positive integer. By default, num is set to 1.
-o list Print pages whose numbers are given in the comma-separated list. The list contains single numbers N and ranges N1 - N2. A missing
N1 means the lowest numbered page, a missing N2 means the highest. The page range is an expression of logical pages rather than
physical sheets of paper. For example, if you are printing two logical pages to a sheet, and you specified a range of 4, then two
sheets of paper would print, containing four page layouts. If you specified a page range of 3-4, when requesting two logical
pages to a sheet; then only page 3 and page 4 layouts would print, and they would appear on one physical sheet of paper.
-p mode Print files in either portrait or landscape mode. Only the first character of mode is significant. The default mode is landscape.
-w num Set the line width used for graphics to num points, where a point is approximately 1/72 of an inch. By default, num is set to 0
points, which forces lines to be one pixel wide.
-x num Translate the origin num inches along the positive x axis. The default coordinate system has the origin fixed at the center of the
page, with positive x to the right and positive y up the page. Positive num moves everything right. The default offset is 0.0
inches.
-y num Translate the origin num inches along the positive y axis. Positive num moves everything up the page. The default offset is 0.0.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
FILES
/usr/lib/lp/postscript/forms.ps
/usr/lib/lp/postscript/ps.requests
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpsf |
+-----------------------------+-----------------------------+
SEE ALSO download(1), dpost(1), postdaisy(1), postdmd(1), postio(1), postmd(1), postprint(1), postreverse(1), attributes(5)NOTES
The default line width is too small for write-white print engines, such as the one used by the PS-2400.
SunOS 5.10 9 Sep 1996 posttek(1)