01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LP ( l ) LP (1)<br />

NAME<br />

lp, cancel - send/cancel requests to an LP line printer<br />

SYNOPSIS<br />

lp [-c] [-d dest] [-m] [-n number] [-ooption] [-r] [-ttitle]<br />

[-w] [-x] files<br />

cancel [ids ] [printers ] [-a name]<br />

DESCRIPTION<br />

Lp arranges for the named files and associated information ( collectively<br />

called a request) to be printed by a line printer. If no file<br />

names are mentioned, the standard input is assumed. The file<br />

name - stands for the standard input and may be supplied on the<br />

command line in conjunction with named files . The order in<br />

which files appear is the same order in which they will be printed.<br />

Lp associates a unique id with each request and prints it on the<br />

standard output. This id can be used later to cancel (see cancel)<br />

or find the status (see lpstat(l)) of the request.<br />

The following options to lp may appear in any order and may be<br />

intermixed with file names:<br />

-c Make copies of the files to be printed immediately<br />

when lp is invoked. Normally, files will not be<br />

copied, but will be linked whenever possible. If the<br />

-c option is not given, then the user should be careful<br />

not to remove any of the files before the request<br />

has been printed in its entirety. It should also be<br />

noted that in the absence of the -c option, any<br />

changes made to the named files after the request is<br />

made but before it is printed will be reflected in the<br />

printed output.<br />

-ddest Choose dest as the printer or class of printers that is<br />

to do the printing. If dest is a printer, then the<br />

request will be printed only on that specific printer.<br />

If dest is followed by _R, the request is printed in<br />

raw mode (no post-processing, no CR-LF translation,<br />

high-order bits are passed through unchanged). If<br />

dest is a class of printers, then the request will be<br />

printed on the first available printer that is a member<br />

of the class. Under certain conditions (printer unavailability,<br />

file space limitation, etc.), requests for specific<br />

destinations may not be accepted (see accept(1M) and<br />

lpstat(1)). By default, dest is taken from the environment<br />

variable LPDEST (if it is set). Otherwise, a<br />

default destination (if one exists) for the computer<br />

system is used. Destination names vary between systems<br />

(see lpstat(1)).<br />

-m Send mail (see mail(1)) after the files have been<br />

printed. By default, no mail is sent upon normal<br />

completion of the print request.<br />

-nnumber Print number copies (default of 1) of the output.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!