Table of Contents
SYNOPSIS
lp [ -c ] [ -m ] [ -p ] [ -s ] [ -w ] [ -d destination ] [ -f form-name ] [ -H special-handling ] [ -n number ] [ -o option ] [ -P page-list ] [ -q priority-level ] [ -S character-set|print-wheel ] [ -t title ] [ -T content-type [ -r ] ] [ -y mode-list ] [ file... ]
lp -i request-ID... [ -c ] [ -m ] [ -p ] [ -s ] [ -w ] [ -d destination ] [ -f form-name ] [ -H special-handling ] [ -n number ] [ -o option ] [ -P page-list ] [ -q priority-level ] [ -S character-set|print-wheel ] [ -t title ] [ -T content-type [ -r ] ] [ -y mode-list ]
DESCRIPTION
lp submits print requests to a destination. There are two formats of the lp command.
OPTIONS
-d destination Prints file on a specific destination. Destination can be either a printer of a class of printers, (see lpadmin(1M) ). Specify destination using atomic, POSIX-style (server : destination ), or Federated Naming Service (FNS ) (…/service /printer /…) names. See printers.conf(4) for information regarding the naming conventions for atomic and FNS names, and standards(5) for information regarding POSIX.
-H special-handling Prints the print request according to the value of special-handling. The following special-handling values are acceptable:
hold Do not print the print request until notified. If printing has already begun, stop it. Other print requests will go ahead of a request that has been put on hold (held print request) until the print request is resumed. resume Resume a held print request. If the print request had begun to print when held, it will be the next print request printed, unless it is superseded by an immediate print request. immediate Print the print request next. If more than one print request is assigned, the most recent print request is printed next. If a print request is currently printing on the desired printer, a hold request must be issued to allow the immediate request to print. The immediate request is only available to LP administrators.
-m Sends mail after file has printed (see mail(1) ). By default, no mail is sent upon normal completion of a print request.
-n number Prints a specific number of copies of file. Specify number as a digit. The default for number is 1.
-p Enables notification on completion of the print request. Delivery of the notification is dependent on additional software.
-q priority-level Assigns the print request a priority in the print queue. Specify priority-level as an integer between from 0 and 39. Use 0 to indicate the highest priority;
-t title Prints a title on the banner page of the output. Enclose title in quotes if it contains blanks. If title is not not specified, the name of the file is printed on the banner page.
-w Writes a message on the user's terminal after the files have been printed. If the user is not logged in, then mail will be sent instead.
OPERANDS
file The name of the file to be printed. Specify file as a pathname or as a hyphen (`-') to indicate the standard input. If file is not specified, lp uses the standard input.
documented on: 08-11-99