lp.1 (2010 09)

l
lp(1) lp(1)
International Code Set Support
Single- and multibyte character code sets are supported.
RETURN VALUE
Exit values are:
0 Successful completion.
>0 Error condition occurred.
EXAMPLES
For a laserjet printer named
lp2, configured with an interface script that defines the -c option to cause
the printer to print in a compressed mode, use the following command to print
myfile with compressed
print on
lp2:
lp -dlp2 -oc myfile
lp can be used at the end of a pipeline to print the results of a previous command. It is commonly used
with the pr command (see pr(1)) to print formatted output. For a default printer, to format file
.pro-
file into pages and print three copies of it:
pr .profile | lp -n3
WARNINGS
A remote print request can be canceled only from the system from which the the original lp
command
was issued, and if the restrict cancel feature (see lpadmin (1M)) is enabled for the specified printer, a
request belonging to this printer can be canceled only by administrator or the user who requested it.
A remote print request can be altered only from the system from which the the original
lp
command was
issued, and only by administrator or the user who requested it. The remote system will ignore this alter
request if the request is being printed.
For a remote system,
lpalt cannot change dest and priority .
The information on destination queues and print requests are maintained in
pstatus, qstatus and
outputq files under /var/spool/lp
directory. These files should not be directly read by any applica-
tion other than the LP subsystem, because the format of data stored in these files may change in future.
FILES
/etc/lp Directory of spooler configuration data
/etc/lp/interface
Directory of active LP device interface scripts
/usr/lib/lp Directory of model and font file directories
/var/adm/lp Directory of spooler log files
/var/spool/lp Directory of LP spooling files and directories
SEE ALSO
enable(1), lpstat(1), mail(1), slp(1), accept(1M), lpadmin(1M), lpana(1M), lpsched(1M), rcancel(1M),
rlp(1M), rlpdaemon(1M), rlpstat(1M).
STANDARDS CONFORMANCE
lp: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
cancel: SVID2, SVID3, XPG4
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: September 2010