Questions tagged [lpr]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
66 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 ...
user avatar
1 vote
1 answer
244 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 ...
user avatar
0 votes
0 answers
39 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 <...
user avatar
  • 101
0 votes
2 answers
716 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 ...
user avatar
3 votes
0 answers
834 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 ...
user avatar
  • 131
19 votes
5 answers
9k 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? ...
user avatar
  • 90.8k
0 votes
1 answer
101 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 ...
user avatar
  • 1
0 votes
1 answer
183 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 ...
user avatar
1 vote
1 answer
231 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.)
user avatar
0 votes
2 answers
411 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. ...
user avatar
  • 1,273
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 ...
user avatar
  • 245
2 votes
0 answers
314 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 ...
user avatar
  • 66.2k
1 vote
0 answers
138 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 ...
user avatar
1 vote
1 answer
228 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 ...
user avatar
11 votes
1 answer
5k 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-...
user avatar
  • 3,258
0 votes
1 answer
153 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?
user avatar
  • 11
2 votes
1 answer
552 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
1k 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 ...
user avatar
2 votes
1 answer
758 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 ...
user avatar
2 votes
1 answer
416 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 ...
user avatar
  • 3,372
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 ...
user avatar
  • 685
10 votes
3 answers
4k 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 ...
user avatar
  • 211
0 votes
0 answers
1k 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
179 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=...
user avatar
1 vote
0 answers
108 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 ...
user avatar
3 votes
1 answer
3k 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 ...
user avatar
1 vote
0 answers
907 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. ...
user avatar
3 votes
0 answers
377 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 ...
user avatar
  • 3,530
10 votes
4 answers
7k 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 ...
user avatar
  • 3,530
1 vote
1 answer
94 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 ...
user avatar
  • 3,530
1 vote
0 answers
348 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 ...
user avatar
  • 3,991
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 ...
user avatar
  • 1,011
17 votes
6 answers
92k 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 ...
user avatar
  • 348
11 votes
1 answer
19k 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 ...
user avatar
  • 9,356
5 votes
1 answer
3k 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 ...
user avatar