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.
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.
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.
http://localhost:631/help
gives me a blank page in Firefox. There are some available options available at man lp
in my cups-bsd, but not page-range
. Your given internet does have the given option. I cannot understand why Ubuntu is using Apple's manuals, since we have much better manuals provided by FSF.
Dec 2, 2009 at 23:47
info
, c) /usr/share/doc/<packagename>
, d) the package homepage, e) Google.
Dec 3, 2009 at 2:54
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.
man lpr
on Ubuntu 9.04 doesn't include a listing of possible options, just details of how to specify those options.
Dec 2, 2009 at 23:17
info lpr
provides more detail, sometimes just refers to the man page.
Dec 3, 2009 at 1:01
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