Articles · Book · Estimator · CUPS 1.1 · CUPS 1.2 · CUPS 1.3 · CUPS 1.4 · CUPS 1.5 · Other CUPS · Search Help lp(1)lp(1)Namelp - print filesSynopsislp [ -E ] [ -U username ] [ -c ] [ -d destination[/instance] ] [ -h hostname[:port] ] [ -m ] [ -n num-copies ] [ -o option[=value] ] [ -q priority ] [ -s ] [ -t title ] [ -H handling ] [ -P page-list ] [ -- ] [ file(s) ]lp [ -E ] [ -U username ] [ -c ] [ -h hostname[:port] ] [ -i job-id ] [ -n num-copies ] [ -o option[=value] ] [ -q priority ] [ -t title ] [ -H handling ] [ -P page-list ] Descriptionlp submits files for printing or alters a pending job. Use a filename of "-" to force printing from the standard input.The Default DestinationCUPS provides many ways to set the default destination. The "LPDEST" and "PRINTER" environment variables are consulted first. If neither are set, the current default set using the lpoptions(1) command is used, followed by the default set using the lpadmin(8) command.OptionsThe following options are recognized by lp:
Common Job OptionsAside from the printer-specific options reported by the lpoptions(1) command, the following generic options are available:
ExamplesPrint a double-sided legal document to a printer called "foo":
lp -d foo -o media=legal -o sides=two-sided-long-edge filename
Print an image across 4 pages:
lp -d bar -o scaling=200 filename
Print a text file with 12 characters per inch, 8 lines per inch, and a 1 inch left margin:
lp -d bar -o cpi=12 -o lpi=8 -o page-left=72 filename
CompatibilityUnlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive.The "q" option accepts a different range of values than the Solaris lp command, matching the IPP job priority values (1-100, 100 is highest priority) instead of the Solaris values (0-39, 0 is highest priority). See Alsocancel(1), lpadmin(8), lpmove(8), lpoptions(1), lpstat(1),http://localhost:631/help CopyrightCopyright 2007-2010 by Apple Inc. | ||||||||||
| Comments are owned by the poster. All other material is copyright 2007-2011 Apple Inc. All rights reserved. CUPS and the CUPS logo are trademarks of Apple Inc. All other trademarks are the property of their respective owners. Please report site problems to 'webmaster@cups.org'. |