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 destSelect the destination printer. If dest is ?, list the currently available printers. In the absence of –d, the destination is taken from the environment variable LPDEST. Destination stdout is the standard output. Destination safari is /dev/lpt1data line printer port on a 386 machine, assumed to be
–p procThe given processor is invoked. The default processor is generic, which tries to do the right thing for regular text, HTML, or troff(1) output. If no processing is desired noproc may be specified. –q Print the queue for the given destination. For some devices, include printer status. –R Stops and restarts the printer daemon. If the printer is wedged, it is often useful to cycle the power on the printer before running this command.
The remaining options may be used to affect the output at a given
device. These options may not be applicable to all devices. |
EXAMPLES
eqn paper | troff –ms | lp –dsafari
|
SOURCE
/rc/bin/lp /sys/src/cmd/lp |
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. |