Questions tagged [lpr]
The lpr tag has no summary.
43 questions
1
vote
0
answers
82
views
linux lpr option to print double sided?
I am trying to figure out how to print a Postscript file double sided
from the command line using lpr or lp commands.
Of course I have found lots on the web telling me how to do this but they
don't ...
0
votes
0
answers
49
views
Java 11 DocPrintJob throw IOException for -o flags with AIX print spooler
I am using the Java Print Service API (javax.print) to send print jobs to a specific printer queue on an AIX system. While my code works fine with Java 8, switching to Java 11 causes it to fail with ...
1
vote
1
answer
91
views
Temenos Printing Error on AIX: Unsupported lpr Flags (-J and -o) with Semeru Runtime
I'm running a Temenos application on an AIX 7.3 system configured with the AIX spooler. The lpr command works fine when tested manually. However, when the application attempts to print using Java's ...
-1
votes
1
answer
36
views
How can start the job in the printer's queue
List all jobs in my printer:
lpq -a
Rank Owner Job File(s) Total Size
1st debian 20 2482850685dzfp_2433200000024816 132096 bytes
How can start the job in ...
1
vote
1
answer
162
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 ...
1
vote
1
answer
666
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
...
1
vote
1
answer
206
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 ...
0
votes
0
answers
125
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 ...
0
votes
1
answer
181
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 ...
2
votes
1
answer
725
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 ...
0
votes
0
answers
97
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 <...
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 ...
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 ...
20
votes
5
answers
11k
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?
...
0
votes
1
answer
130
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 ...