Questions tagged [lp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
38 views

How to print images two-sided using `lpr`?

I have several photos, which I wish to print on a single piece of paper. I have already tried: Using convert to combine all images per side. However, now I need to print them two-sided. Using ...
1
vote
0answers
113 views

Thermal Printer - Send image via /dev/usb/lp0

I am working with a Raspberry Pi Zero W, and I am attempting to print an image (jpg/png) file to the printer. Currently, I am having success using commands such as echo "hello" /dev/usb/lp0 and ...
0
votes
0answers
14 views

jobs don't print after lpmove

I ran this command to move a job stuck in queue of printerA (this printer is broken) to identical model printerB: sudo lpmove printerA-112143 printerB but now this job remains stuck in printerB ...
2
votes
0answers
74 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 ...
0
votes
1answer
41 views

lp -o sides=two-sided-long-edge 1.pdf not working

Any reason why lp -o sides=two-sided-long-edge 1.pdf would only print one-sided ? I am expecting to see one page printed on both sides, instead I am getting two sheets of paper printed on one side....
0
votes
0answers
48 views

mixing `lp -o raw` with other options

The problem is that our printers have very bad printing quality by default, printing quality of pdfs can be improved by using lp -o raw. Is it generally possible to mix other options, especially -o ...
1
vote
1answer
318 views

Print multiple documents and finish all of them with stapler using lp in linux?

I'm using this command to print multiple files with lp in linux but each document is being finished with stapler: lp -d printername -o "HPPaperSource=Tray3" -o "HPStaplerOptions=1StapleRightAngled" /...
0
votes
1answer
20 views

lp -d lp1 -h myfile has two options and one argument or 2 options and 2 arguments?

In "Learning the Bash Shell" by O'reilly (third edition), it is written in page 7: lp -d lp1 -h myfile has two options and one argument. How come? I see what I reckon as two options, each one with ...
0
votes
0answers
147 views

unix printing files (simple txt files )with pages numbers

I am using the command lp -d (printer_name) * to print all files in the current directory. How can I print the page number also: 'Page-1' or '1' on each page per file printed?
0
votes
2answers
218 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. ...
1
vote
0answers
193 views

Linux printing using lp command

We are going to move our system from AIX to Red Hat. AIX had a command to start on the second page of the print file. What is a command to start on the second page of a print file? I tried the ...
1
vote
1answer
687 views

cups-pdf via cups-lpd creates PDF files with no content but printer config

I'm using cups-pdf to print via lpd (Port 515) That's working so far, but all pdf-files are created with its content of the printer configuration. The PDF file includes following: Media Limits: 0.00 ...
0
votes
1answer
2k views

Ubuntu Linux - Slow printing with lp command

I asked here some months ago how to print and check results with lp command (CUPS) in Ubuntu. After few working around, I was able to print normal text files. I was able to print selecting some ...
1
vote
1answer
2k views

How to add a USB printer using lpadmin

I'm trying to use this old technology called USB ;) I call it old because all the tutorial that I find on-line deal with wireless printers or IP ones. The man for lpadmin is very unclear how to go ...
1
vote
1answer
3k views

where does lpd and lpr log error and messages?

Where can I find error and log messages from lpd and lpr? I don't find any ouput when I run "lpr /tmp/test_file" This terminates without any error. I had looked for /etc/rc.d/lpd and it is failed. ...
0
votes
1answer
131 views

lp print different amount of different pages

I have a PDF, with two pages. I want to print the first page x times and the second page y times. How would I go about this using lp? Is there a way to do this in a single command? I'm using lp right ...
2
votes
1answer
346 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 ...
-1
votes
1answer
882 views

Solaris: Spooling filesystem is full

I have a Solaris 5.8 machine that will no longer print. print job that come from the terminal say: "See if spooling file system is full" I had a look around /var/spool but it isn’t particularly ...
12
votes
2answers
7k views

Printing two pages per sheet from the command line

Say I start off from a PDF document, say of 12 pages, viewed with evince. To produce another PDF of 6 sheets, with a page setup of two pages per side, I normally use the "Print to File" device ...
2
votes
1answer
2k views

limitations of CUPS command line printing of image files

I have my default printer set: lpoptions -d HP_ENVY_5530_series. I can print some text: echo HELLO > h.txt lp h.txt CUPS understands many different types of files directly, including text, ...
1
vote
2answers
329 views

Solaris 10,print only banner

I have a remote printer by cups(cups-pdf virtual printer) on linux server. BSD,Hp-ux and linux works fine,on solaris 10 i have this problem,print the banner only,not the text of file. I have ...
2
votes
0answers
746 views

lp & Epson WF: set quality of printing

I use Epson WF 7510 printer, and I can print in any quality I choose (draft/normal/best) using system tools (OS X). But I cannot change the quality of printing in command line: lp -o EPIJ_Qual=... has ...
2
votes
0answers
183 views

Using interface file with LP and txt2pdf utility to transform print file to PDF

Our legacy application uses LP commands on Solaris 5.10 to print report files to printers throughout our org. However, now we have a remote location that won't have access to a printer (at least not ...
1
vote
2answers
1k views

How to preprocess CUPS' `lp` with a script for a specific printer?

(How) Is it possible to preprocess lp automatically with a script? Piping inbetween (fileToPrint | script.sh | lp -d myPrinter) is no option for me, because I have a lot of source code that does lp ...
2
votes
2answers
2k views

How to change default cpi for `lp`?

I know I can change the characters per inch used by lp with lp -o cpi=12 (or any number you like). But is it possible to change the default value of this option globally? The default, when -o cpi=<...
3
votes
1answer
2k 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 ...
11
votes
2answers
16k views

Duplex printing options using lp or lpr

The default options for a Brother MFC-9340CDW printer, are reportedly (e.g. querried via lpoptions -l) set to: PageSize/Media Size: *A4 Letter Legal Executive A5 A6 B5 JISB5 JISB6 EnvDL EnvC5 Env10 ...
1
vote
0answers
295 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 ...
1
vote
0answers
140 views

what interface does lpsched provide that cups does not?

Work has a Linux stock/erp custom system that uses the Unix System V (Solaris, SCO, HP-UX) lpsched program that someone who used to work here compiled for RHEL/CentOS 5 i686 (I have no idea why or how)...
5
votes
2answers
5k views

Print a text file from a line number to another after searching for the lines

I want to print a text file from X line number to Y line number The value of X & Y is determined by searching for a specific line in the text file(in this case the page number) I search for the ...
2
votes
3answers
2k views

Can groff create a ps file with interpreted ANSI escape characters?

This question is inspired by this one on SU. How can I print bold or color using lp and ANSI escape sequences? I know how to display, for example, bold text in the terminal: $ echo -e '\033[01;...