up vote 3 down vote favorite
share [g+] share [fb]

How can you print pages from 7 to 17 by lpr?

link|improve this question

feedback

2 Answers

up vote 2 down vote accepted
lpr -P myprinter -o page-ranges=7-17

where myprinter is the name of your printer

link|improve this answer
How did you find the information about the flag: - page-ranges=7-17 .? It is not in my manual in Ubuntu. – Masi Dec 2 '09 at 20:03
I just Googled for "lpr page range" - and lo - first result – Sathya Dec 2 '09 at 21:42
i think the command should be -o page-ranges=7-17 not - page-ranges=7-17. can't test since i have no printer, but you don't give your source so i can't look to see if the typo is yours or theirs. – quack quixote Dec 2 '09 at 23:11
@~quack That's correct. Not sure how I missed typing the missing letter. – Sathya Dec 3 '09 at 9:22
Depending on how you installed lpr, -o may or may not work! See here: superuser.com/questions/230379/… and here: superuser.com/questions/371577/… – zebonaut Dec 29 '11 at 22:35
feedback

Masi, the command IS documented on your Ubuntu box, in the online-help for CUPS. Visit

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

to see what I mean.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.