O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

lpr

Synopsis

lpr [options] files

Sends files to the printer spool queue. Part of the Common Unix Printing System (CUPS).

Options

-C, -J, -T title

Use title for the print job name.

-E

Force an encrypted connection if supported by the print server.

-l

Assume print job is preformatted for printing and apply no further filtering. Same as -o raw.

-o options

Set one or more printer options. CUPS documentation describing these options is included with Mac OS X and viewable via a web browser at http://127.0.0.1:631/sum. html#STANDARD_OPTIONS.

-p

Print text files with pretty printing, adding a shaded header with date, time, job name, and page number. Same as -o prettyprint.

-P printer

Output to printer instead of system default.

-r

Remove the file upon completion of spooling.

-# num

Print num copies of each listed file (100 maximum).

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required