LP ( 1 ) USER COMMANDSLP ( 1 )


NAME

lp - send files to a printer

SYNOPSIS

lp [ options ] [ file ... ]

DESCRIPTION

The lp utility copies the input files to a printer. The file name - means the standard input. If no files are named, the standard input is copied.

The input is copied to the printer as raw data, bypassing the Windows printer driver. lp can therefore be used to send PostScript, PCL etc. data directly to the printer as well as ASCII data.

A unique request ID is assigned to each request.

OPTIONS

-c, --copy
For compability reasons only.
-d, --destination=dest
Specify the destination printer. If this option is not specified, and neither the LPDEST nor PRINTER environment variable is set, the Windows default printer is used. This option takes precedence over LPDEST, which in turn takes precedence over PRINTER.
-m, --mail
Send mail after printing the files.
-n, --number=copies
Specify the number of copies of the files to print.
-o, --options=option=value
Specify printer dependent options. See section PRINTER OPTIONS below.
-s, --silent|suppress
Suppress the "request id is..." message.
-t, --title=title
Write title on banner page of the output.
-w, --write
Write a message on the user's terminal after files have been printed. If neither the standard input, standard output or standard error is a terminal then mail is sent instead.

PRINTER OPTIONS

Currently no printer options are supported.

DIAGNOSTICS

lp exits with non-zero exit status if an error ocurred or not all of the files were processed successfully.

SEE ALSO

cancel(1), lpstat(1)

IMPLEMENTATION

version
lp (Omnium Software Engineering) 2002-09-20
author
Karsten Fleischer <K.Fleischer@omnium.de >
license
http://www.opensource.org/licenses/mit-license.html