Questions tagged [lpr]
37 questions
21
votes
6 answers
How to show the CUPS printer jobs history?
I am printing some files from a remote computer to a network printer with the lpr command.
It apparently worked, but some minutes later when I typed lpstat or lpq, the job had already disappeared, it had probably already printed the file.
Is there a…
Santiago
- 398
- 1
- 3
- 13
19
votes
5 answers
What does spool mean for printing?
Mark wrote a comment for me
I don't know offhand how to make cups not spool, that is, how to make the lpr command only exit after the printer driver has run.
What does "spool" for printing mean?
Google says it is a verb meaning "send (data that…
Tim
- 98,580
- 191
- 570
- 977
11
votes
1 answer
How to select paper source with lpr?
I had trouble printing PDFs with evince (fixed by Evince does not show printers) and in the meantime used lpr successfully to do things.
I found several options in the man page (page-ranges, number-up) but none to specify the paper source. In the…
Jasper
- 3,538
- 4
- 16
- 22
11
votes
3 answers
LPR or CUPS print to Airprint printer
I've seen many a blog posting describing the process of using CUPS to present a non-airprint printer to iOS devices. However, I've dug high and low trying to find if anyone has figured out how to print to a printer that has an Airprint server baked…
Peter
- 221
- 2
- 5
11
votes
1 answer
Command line printing with a Samba printer requiring authentication
Is there a way to print to a Samba printer requiring authentication by providing the credentials on the command line (e.g., with lpr)?
I managed to store the credentials in GNOME Keyring and when I am logged with a desktop session I can print with…
Matteo
- 9,676
- 4
- 49
- 66
10
votes
4 answers
support for utf-8 encoding with lpr
While trying to send a text file to the printer via lpr from xterm, the content was corrupted beyond recognition, the cause of which was ultimately traced to the encoding of the file. If I instead process the text with iconv (e.g., iconv -f utf-8 -t…
user001
- 3,598
- 5
- 39
- 54
5
votes
1 answer
How to print (Cups, lpr, whatever...) in grayscale in a _generic_ way?
Problem:
E.g. Cups just offers options to manage colors. Unfortunately they are specific to the manufacturers model. I.e. xerox is using e.g. "XRXColor, BW", Dell "ColorModel, KGray" etc...
I am looking for a tool which offers a unified interface to…
ManuelSchneid3r
- 4,256
- 8
- 41
- 58
4
votes
2 answers
How do I get the right `lpr` for cups installed on Ubuntu Server 14.04?
UPDATE
It appears the lpr in the lpr package is not the one that works with cups. The questions is, how do I get the cups version of lpr installed?
Old Question
lpr on ubuntu 10.04 includes an option "-o" that lets you pass extra options. lpr on…
Nick
- 1,081
- 6
- 17
- 29
3
votes
0 answers
How to Print All Pages of a PDF using lp or lpr
I'm getting a strange behavior with the lp command on Mac OS Catalina. I have a 12-page PDF file and want to print all pages in the PDF. I'm hoping to print hundreds of PDFs using lp or lpr with a variable number of pages.
The following only prints…
Alex Cook
- 131
- 2
3
votes
2 answers
How do I use `lpr` to print multiple files using 4 pages per sheet?
I create eps/png/pdf figures using python scripts. I want to use one lpr command to print several figures with 4 on each sheet of paper. The following command printed each figure on one fourth of a separate sheet.
lpr -o number-up=4…
Steven C. Howell
- 467
- 1
- 6
- 14
3
votes
1 answer
Formatting file in command line for printing
Whenever I print a text file with the lpr or lp commands, the words are cut off at the end of one line and continue onto the other; for example, 'understand' would be split into 'unde' at the end of line one and 'rstand' at the beginning of other.…
Sergiy Kolodyazhnyy
- 16,187
- 11
- 53
- 104
3
votes
0 answers
lpr ignores options specified by -o
When submitting a text file to a printer (HP Color LaserJet 4650) from a Debian 8/openbox system, the -p or -o prettyprint option is ignored. Printing the same file from a MacOS X system produces a document with proper -p formatting. I am trying to…
user001
- 3,598
- 5
- 39
- 54
2
votes
0 answers
How to send SGD commands to USB printer?
I am trying to use SGD commands on Zebra 420 USB printer.
printf "! U1 getvar \"device.languages\"\r\n" | lpr -P myprinter -o raw
I expect this will print current lang value, but getting empty string. How to properly send command and receive…
Pablo
- 245
- 3
- 15
2
votes
0 answers
Why did duplexing with lpr start giving me blank pages?
I have a system that generates PDFs in an assortment of layouts, then sends them to a printer. I've been doing this exactly the same way religiously¹ for 3 years. The process is scripted and the scripts are under version control.
Two computers are…
Caleb
- 69,278
- 18
- 196
- 226
2
votes
1 answer
Printing 2 jpeg files on one side of a paper by CLI
I use debian jessie.
I want to print 2 jpeg files on one side of a paper.
$ lpr -o number-up=2 foo1.jpg foo2.jpg
This command printed only 1 jpeg file on one side of a paper.
How should I do?
user121832