Questions tagged [lpr]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
2k views

lpr does not see default printer - why?

I've set my only printer to be the default printer via CUPS, which lpstat confirms $ lpstat -p -d printer MFC-9840CDW is idle. enabled since Fri 03 Jun 2016 09:05:46 AM Online system default ...
1 vote
1 answer
935 views

Specify page range for lpr command

According to docs, lpr command doesn’t have an option which specifies the number of pages that should be printed. Is it possible to specify a page range for printing with lpr command somehow, may be ...
3 votes
1 answer
1k views

lpr says "unknown printer" but lpstat shows printer correctly

I'm configuring a USB printer in Debian 8.9 and am running into issues. I have configured the printer using the CUPS web interface and named it "elise". I have run lpstat which shows : $ lpstat -p -...
1 vote
2 answers
2k views

How can I print particular set of pages like 1,3,5,6,9... using lp command

I am trying to print particular set of pages using lp command, but page-ranges option is not getting me the exact pages. lpr -o page-ranges=1,3,5,6,9 filename
0 votes
1 answer
452 views

When printing from command line how to know what was the default font and font size is being used to print

I am printing from a text file. I would like to know what was the default font and font size is being used. Is there a way to find out? lp template.html -d TVS_MSP-250CH-custom
0 votes
1 answer
196 views

When printing on Windows, the printer settings are not saved, they keep on being reseted (but not for all settings)

While trying to set the settings for a printer, every time I go into the settings, apply them, press ok and then go back, I notice my settings are not saved. For example, the Paper Source keeps ...
0 votes
2 answers
4k views

lpr -o page-ranges=1 is still printing all three pages

I need to make lpr print just the first page of my document, however it continues to print everything. Itried these commands: lpr -P <myprinter> -o page-ranges=1 <myfile> lp -d <...
2 votes
0 answers
906 views

usr/bin/lpr: Too many active jobs

I try to print with a receipt printer. It all worked fine but I was sending prints to quick to the device. Now I get the error: usr/bin/lpr: Too many active jobs I would like to clear all active jobs. ...
83 votes
2 answers
134k views

How to list printer names acceptable for use with lpr?

The lpr man page says a destination printer can be specified with the -P flag. -P destination[/instance] Prints files to the named printer. I have 'added' various printers on local Samba shares ...
2 votes
2 answers
5k views

How to figure out exactly URI of my network printer(Canon MX358)?

I have successfully setup my printer(Canon PIXMA MX358) as a network printer, and connected/configured it correctly in Kubuntu 20.04, if my computer lived in the same LAN (same broadcast-domain) of ...
4 votes
2 answers
813 views

lpr on Cygwin appending .lnk to my PRINTER value

I have Cygwin on a Windows 7 machine. In my .bashrc file, I have tried export PRINTER=\\\\myPrintServer\\myPrinter Escaping the backslashes, which, when I type $lpr -D, gives me Windows Printer ...
30 votes
2 answers
30k views

lp vs lpr. What to use in case of CUPS and what historical difference?

My Debian distro provide the lp and lpr commands for printing from CUPS. I am a noob to printing in UNIX but have other tech skills. I tried to find a difference in man lp and man lpr. It seems that ...
0 votes
1 answer
2k views

How to print image file in windows7 using command line LPR

I have image file "test_image.png" and I ran this command on windows7 (64bit) lpr -S <ipv4 address> -P "GodexG500" "test_image.png" This command prints the image raw content which is not in ...
12 votes
3 answers
14k views

Printing from the command line with LibreOffice, lpr commands?

I'm trying to print a word document from the command line, but I need to specify printing options that I would normally use lpr for. This is the command I'm using libreoffice -p "filename.doc" I ...
21 votes
3 answers
17k views

Printing pages from 7 to 17 by lpr

How can you print pages from 7 to 17 by lpr?
0 votes
1 answer
514 views

Using lpr to print a file whose path has spaces

So my path: /Users/work/Desktop/My Folder/My File.txt My Folder and My File have spaces. Of course, in Terminal, when you tab for autocompletion it would do /Users/work/Desktop/My\ Folder/My\ File....
0 votes
2 answers
2k views

Cups line printer skip page after printing one line

I have a cups line printer (Epson 9 pin).Printing works fine but it skips the page after one print. I'm using echo "Hi" | lpr -P myprinter command to test. It prints the message,But when I again ...
2 votes
2 answers
2k views

Margin problems when printing PDF using LPR on OS X

I'm printing a PDF document using LPR on OS X, to a Canon MP190 printer. When printing the same document (Letter paper size) from the Preview app, the margins are correct. When printing using LPR, the ...
3 votes
2 answers
2k views

Windows lpr implementation not finding printer

I'm trying to port a linux program to windows 7, that receives an lpr command from a websocket and sends the command to a local vinyl cutter. The windows lpr implementation is different and there is ...
1 vote
0 answers
3k views

How to export large report to text file in SAP

Goal Save a report from SAP to a file (that was produced by background job) (which runs for about 5 days before finishing) 1. option 1 [has issue]: via Generic Printer Driver I have installed the ...
1 vote
0 answers
97 views

Exclude last page from printing with lpr

How can I use lpr command to print range from first to next to last page, assuming I don’t know number of pages? I have to print a set of document with a different number of pages, but I have to ...
0 votes
1 answer
749 views

Is it possible to add a remote Linux printer to Windows?

My university has a Sharp MX-2614 industrial printer. To print on it, one can save the document as .pdf, SSH into the university Linux-based server and then use the lpr command to print. Would it be ...
0 votes
0 answers
745 views

Canon LPB-6020 printer not working in LPR/LPD over ASUS RT-AC3200 router

I just bought ASUS RT-AC3200 and I realized that it does not work with my Canon LPB-6020 printer over LPR/LPD protocol on Mac (Mac OS X El Capitan). I have installed it using this docs https://www....
1 vote
0 answers
70 views

Ubuntu, Seiko SLP 240, Commandline Printing

I have bought an older label printer. The model is »Seiko SLP 240«. I have downloaded, build and installed the driver from the company's website. The printer is working, but it refuses to print the ...
0 votes
0 answers
493 views

Dot Matrix Printer - Paper Position

I'm trying print on Linux using lp and lpr with an Epson LX 300+II. The overall print works well, but sometimes my user leaves the paper in the middle at printer tray. Every document I send to the ...
0 votes
1 answer
2k views

Add Printer requires UAC to admin

I have several non-admin users on my Active Directory domain that need to be able to add printers without an admin entering their credentials at a UAC prompt. How do I use group policies to allow non-...
1 vote
1 answer
3k views

Changing the font when printing with lpr

I have searched through the internet, and Super User, but couldn't find the answer. Is it possible to change the font used when printing with lpr from Monaco to some other font, like Times New Roman? ...
2 votes
0 answers
141 views

Printer configurations on Linux: Providing privilege to normal users

I am on a CentOS machine. Everything is working fine, I can configure the printer with the GUI System->Administration->Printing. It asks for root password and then I can make the configurations. ...
2 votes
3 answers
2k views

How to print out all non-hidden files recursively in a dir using lpr

find . -type f | grep -v '/\.' lists out all non-hidden files in the current dir recursively. Example of this command given the following file tree . ├── css │   ├── base.css │   └── main.css ├── ...
1 vote
0 answers
355 views

Printing slides via lpr: How to get 4-up in landscape correctly?

If I have some pages of text, I can use lpr -o sides=one-sided -o landscape -o number-up=4 -o number-up-layout=btlr -o fitplot -P myprinter to print the text 4-up landscape. The layout is ---------- |...
0 votes
0 answers
1k views

Brother MFC-7360N has misaligned prints

I need to print from a Debian 7.0 (Wheezy) box to a Brother MFC-7360N. The resulting printouts are all shifted 1cm to the right and 1cm up. This is particularly annoying if I want to print labels. ...
0 votes
1 answer
647 views

LPR Utility for Windows 98

I'm trying to print to a network printer through TCP/IP in windows 98, however, windows 98 does not support printing to a TCP/IP port, so I read that I can do it through something called LPR. Where ...
2 votes
1 answer
7k views

How to setup LPR on Windows 8

I have a Netgear WGPS606 print server. How can I install that printer on my Windows 8 system? I have enabled the Windows LRP feature. However; when I try to add a printer it only searches locally. ...
1 vote
1 answer
7k views

printing multiple files with lpr

When printing multiple files using lpr and the -p option, the name of the first file is printed in the header for all files. How can this behavior be modified such that the correct file name is ...
8 votes
1 answer
4k views

Specify different username when printing to a lpr printer

My school requires me to use a different username than my Windows username in order to print. With Linux lpr I could just specify -U username, but there is no such option for Windows lpr (and even if ...
3 votes
1 answer
1k views

How Can I Print Under A Username Different Than The One I'm Logged In As?

I bring my own personal laptop to school where my login is nickname. However, in order to print to the school's printers the username that sends the print job must match my school's AD login, ...
2 votes
2 answers
211 views

How do I tell aptitude or apt to offer a particular version of lpr?

I seem to have a weird version of lpr installed (one that doesn't cope with -o, see also this question). On all my other machines that run the same debian squeeze, the proper version of lpr is ...
3 votes
1 answer
3k views

Adobe Reader seems to use wrong lpr command when printing to CUPS

On my debian lenny box, printing via CUPS works fine, e.g. using OpenOffice. When printing from Adobe Reader, however, stuff doesn't work. It appears the problem happens during the first step of the ...
2 votes
0 answers
359 views

Make Sending Alternate Username to Printer Queue Permenant

I am currently having trouble to print file to a userid protected network printer. The problem is that my username is not what they want. Well, I can print files from terminal: lpr -p [printer name] ...
2 votes
1 answer
2k views

lpr: cannot open printer description file

On a debian with cups, I get the following error with an alias of mine cc2ps cms2CompsGlobEnrich.m [cms2CompsGlobEnrich.m (C++): 4 pages on 4 sheets] lpr: cannot open printer description file [Total: ...
1 vote
1 answer
2k views

How to print in Windows (Vista) using a different user?

Is it possible to print as different user in Windows (Vista) without switching user? I don't want to create profile for another user. (I need this because of some printers that are accessible only ...
3 votes
1 answer
2k views

LPR Printing: Tumble mode

Apparently this is an option to do with duplex/simplex in lpr, but I haven't been able to find what it means.
4 votes
2 answers
3k views

How do I monitor network traffic for IPP (LPD/LPR)?

I'm writing an application that sends print jobs over IPP to an LPR print server. I need a way to monitor the traffic going between that server and my development box. Right now I'm just sending jobs ...
0 votes
3 answers
664 views

Finding manuals for lpr

This thread is based on the thread. Where are the newest manuals for lpr? I would like to know where the flags such as "page-range" are documented. I did not find them in Ubuntu 9.10.