0

This thread is based on the thread.

Where are the newest manuals for lpr?

I would like to know where the flags such as "page-range" are documented. I did not find them in Ubuntu 9.10.

3 Answers3

3

Uh...is

man lpr

not working for you? Are the man pages on your machine stored by a seperate package that you haven't installed yet?


I should clarify that there isn't a lpr. Rather there are many versions provided by many vendors (and notably by GNU), and not all versions support the same set of options. Have you tried the offending command and gotten it to work?

The Apple version is doubtless derived from one of the BSD versions, and probably supports a smaller set of options that the GNU version.

3

Your /usr/bin/lpr is either installed with the cups-bsd package or with the lprng package. You can check which package you're using with dpkg -S $(which lpr).

If you are using the CUPS package, some of the available options are listed in man lp on your system. You should also check http://localhost:631/help (yes, on your system) for CUPS built-in help. The page-ranges option specifically is mentioned by CUPS documentation (see Document Options, and Command-Line Options; these are also available in the online help page "Command-Line Printing and Options"):

The -o page-ranges=pages option selects a range of pages for printing:

lp -o page-ranges=1 filename
lp -o page-ranges=1-4 filename
lp -o page-ranges=1-4,7,9-12 filename
lpr -o page-ranges=1-4,7,9-12 filename

If you're using LPRng, see the LPRng project documentation page. The LPRng Reference Manual is still online, although the Printing Cookbook appears offline currently. I don't see any specific references to a page-ranges option, but it's very possible the option was introduced in a very old LP or LPR implementation.

quack quixote
  • 43,504
0

Page range printing IS documented on every system that has a recent CUPS installed. Look here:

http://localhost:631/help/options.html?TOPIC=Getting+Started&QUERY=#PAGERANGES

(older systems also have it, the URL may be different however). That documentation normally should fit perfectly to your system.

If you indeed are looking for "the latest" documentation that is available for a released version of CUPS, look here:

http://www.cups.org/documentation.php

If you look for "bleeding edge" documentation about (yet) unreleased versions of CUPS, look here:

http://svn.easysw.com/public/cups/trunk/doc/help/
http://svn.easysw.com/public/cups/trunk/man/
http://svn.easysw.com/public/cups/trunk/man/lpr.man
http://svn.easysw.com/public/cups/trunk/man/lp.man

Kurt Pfeifle
  • 13,079