Skip to main content

Questions tagged [lpr]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
69 views

How to specify a number of copies in print lpr command using ssh

When I want to print a document using ssh from my local machine I use cat path/to/document.pdf | ssh [email protected] lpr This will print my document.pdf that is located in my local machine using a ...
zebda's user avatar
  • 13
0 votes
0 answers
79 views

lpr printing to Xerox Printer sometimes fails due to Unknown Job Owner

At my work, the system I support (hosted on a RHEL 8.4 server) allows to request to print what's on screen, which produces a text file and calls the lpr command with the printer associated to the user ...
Gael L's user avatar
  • 131
0 votes
1 answer
90 views

How to print multiple copies of a document with lpr and keep the page order

lpr -# 2 1-2.pdf mixes the document's page order. The first page is printed two times, then page two is printed two times. Whereas this hacky loop keeps the page order for i in {1..2} do lpr 1-2.pdf ...
jjk's user avatar
  • 411
0 votes
0 answers
61 views

How to print on endless paper on a CUPS printer using lp/lpr?

The Situation I'm trying to print on a Brother QL-570 I set up on a Raspberry Pi using CUPS. The printer is working well using lp -d Brother_QL-570 test.pdf. However, when I insert an endless label (a ...
MrGlue's user avatar
  • 1
0 votes
0 answers
73 views

How to print multiple pdfs using pipe and stdin?

I am attempting to print multiple pdfs from the command line: locate FilesIwantToPrint | grep pdf | lp - This prints the list of pdfs on one page instead of printing the files themselves. Is it ...
Noga Ha's user avatar
0 votes
1 answer
154 views

How to reconcile lpstat -s output with lpr invocations

I have a question about lpstat on FreeBSD-12.2. Specifically, I cannot see the relationship between he output of lpstat and the printer name actually required by lpr. For example. I run lpstat -t ...
James B. Byrne's user avatar
2 votes
1 answer
655 views

Is it possible to print multiple copies to PDF using CUPS/lpr

I'm testing an application that sends PDFs to a printer, and it may request that multiple copies are printed, sending a command like /usr/bin/lpr -T Document Title -# 10 I don't have access to a ...
snakecharmerb's user avatar
0 votes
0 answers
70 views

How to print a PDF on a larger paper format

I am trying to print a PDF document via the command line. The PDF has the format of a business card. The paper I am printing on is in A6 format. I have tried the following command: lpr -P <...
Molitoris's user avatar
  • 101
0 votes
2 answers
2k views

Shell script not finding file running in Mac OS X Catalina

Hoping for a suggestion. Using a shell script in Mac OS X Catalina which broke the script. I know there were many security changes but haven't so far figured out modification to access downloads ...
beginner's user avatar
3 votes
0 answers
3k views

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 ...
Alex Cook's user avatar
  • 131
19 votes
5 answers
10k views

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? ...
Tim's user avatar
  • 103k
0 votes
1 answer
123 views

CUPS + Canon MG5650: page cropped when printing duplex

I am trying to print on my Canon MG5650 via CUPS. I have a driver "Canon MG5600 series - CUPS+Gutenprint v5.2.11" was selected. I ran the following command to print "one-sided". the results seems ...
Adam's user avatar
  • 1
0 votes
1 answer
329 views

lpr cannot open connection to localhost

I would like to know how to print with lp commands without using CUPS. If I send a file to print with this command: cat fichero.txt | lpr I've got this error: lpr cannot open connection to ...
José Carlos's user avatar
1 vote
1 answer
284 views

How can I list default lpr filters?

I can discard lpr default filters using the -l (or -o raw) option. But how can I list them ? (FWIW I'm using lpr from cups-client 1:2.2.6-15.fc28, Fedora.)
Skippy le Grand Gourou's user avatar
0 votes
2 answers
544 views

How to find out what process is printing pages on remote printer through STDIN?

Some process sends output of my console over stdin to remote print server. If there is cups printer configured, it prints it. So I need to keep cups disabled. I suspect something is running lp or lpr. ...
pevik's user avatar
  • 1,505
2 votes
0 answers
1k views

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 ...
Pablo's user avatar
  • 245
2 votes
0 answers
430 views

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 ...
Caleb's user avatar
  • 70.5k
1 vote
0 answers
153 views

LPR landscape requests for bizhub printers?

Does anyone have any experience with setting up LPR requests to Konica Minolta printers? I have been searching for weeks trying to find the correct syntax to send a request for landscape printing to a ...
user2766423's user avatar
1 vote
1 answer
323 views

How to print non-consecutive pages from a file, 2 pages per sheet?

I readed a lot of information about lp and lpr linux commands. Today Im trying to print 4 non-consecutive pages from a file, 2 pages per sheet. I tryed a lot of commands: This one prints 4 sheets, 8 ...
Barragán Louisenbairn's user avatar
13 votes
1 answer
6k views

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-...
Jasper's user avatar
  • 3,658
0 votes
1 answer
273 views

How can I get full path to files in print queue?

I'm adding files to print queue using lpr. Is there a way to get full path to files in queue or to show the content of them?
vavuvi's user avatar
  • 11
2 votes
1 answer
628 views

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?
user avatar
3 votes
2 answers
2k views

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 ...
Steven C. Howell's user avatar
2 votes
1 answer
1k views

lpr/cups to screen instead of printer (to see how page will look)

I'd like some way of knowing how my document is going to look when it gets printed with lpr without actually wasting paper and ink. My specific problem is that I'm working with tabular text that ...
James M. Lay's user avatar
2 votes
1 answer
483 views

What command is gimp using to print?

All programs/commands I attempt to print certain PDFs with (lpr, lp, Okular, Evince, Xpdf) print solid black pages. The one exception is Gimp, which allows me to import PDFs one page at a time and ...
user1717828's user avatar
  • 3,562
1 vote
1 answer
3k views

LPR print, can it be directly to printer?

I have a USB printer, connected to a network print server (TL-PS310U). I want to print from Debian/Ubuntu to this printer. The queue is named 2409ee3c, but when I try to use lpr, it says that I need ...
JorgeeFG's user avatar
  • 735
11 votes
3 answers
5k views

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 ...
Peter's user avatar
  • 221
0 votes
0 answers
2k views

Running lpr through command line and through python different outcome

When I run lpr <filename>.jpg the file prints out boderless (this is what I want). When I run subprocess.call("/usr/bin/lpr " + tmp.name, shell=True) from a Python program, it prints out with ...
user avatar
1 vote
0 answers
265 views

lpr duplex ignoring blank page

I'm trying to print double sided with the lpr command with Duplex=DuplexNoTumble. It's printing double sided, but skips/ignores blank pages. How can I fix this? lpr -P ricoh -#1 -o fitplot -o Duplex=...
user2169019's user avatar
1 vote
0 answers
110 views

Run itext script as cups filter

I have an itext script to apply some customisations to pdf files. These need to be done on-the-fly. I can easily do it this way : java -cp ".:itext5.jar" pdflayout input.pdf | lpr -P CP800/print ...
SyntaxErrar's user avatar
3 votes
1 answer
4k views

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 ...
Sergiy Kolodyazhnyy's user avatar
1 vote
0 answers
1k views

No error in lpr but printer doesn't print

I'm having a problem with printing pdf files. When I try to print them in the default mint's document viewer everything seems to work but my printer is stuck with the "Processing please wait" message. ...
azertyuiopml's user avatar
3 votes
0 answers
473 views

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 ...
user001's user avatar
  • 3,708
10 votes
4 answers
8k views

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 ...
user001's user avatar
  • 3,708
1 vote
1 answer
120 views

lpr with reverse video

When sending a text file to the printer from the command line (by, e.g., lpr -P printer-name file.txt), is it possible to specify that inverted colors be used by the printer (i.e., white text on black ...
user001's user avatar
  • 3,708
1 vote
0 answers
398 views

Print EPS file at original size but changed position

I'd like to print EPS files, ensuring they print at their original size. I found out that my default document viewer, Okular from KDE, will always scale to fit size, and I can't seem to find a way to ...
MvG's user avatar
  • 4,441
4 votes
2 answers
11k views

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 ...
Nick's user avatar
  • 1,141
23 votes
6 answers
111k views

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 ...
Santiago's user avatar
  • 418
12 votes
1 answer
22k views

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 ...
Matteo's user avatar
  • 9,846
5 votes
1 answer
4k views

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 ...
ManuelSchneid3r's user avatar