Questions tagged [lpr]

The Line Printer Remote protocol (or LPR) is a network protocol for submitting print jobs to a remote printer.

The Line Printer Daemon protocol/Line Printer Remote protocol (or LPD, LPR) is a network protocol for submitting print jobs to a remote printer.

The original implementation of LPD was in the Berkeley printing system in the BSD UNIX operating system; the LPRng project also supports that protocol.

The Common Unix Printing System (or CUPS), which is more common on modern Linux distributions, supports LPD as well as the Internet Printing Protocol (IPP).

The LPD Protocol Specification is documented in RFC 1179.

More information is available on Wikipedia.

76 questions
0
votes
1 answer

How can I get the confidence scores of LPRNet?

I am a newbie working on the LPRNet provided by openvino toolkit: https://github.com/openvinotoolkit/training_extensions I want to get the probability of the predicted result but it seems that tf.nn.ctc_greedy_decoder only returns neg_sum_logits and…
0
votes
1 answer

Python 3 can't issue lpr command to a networked printer in Windows 10

I'm trying to automate some of our printing. The command has been issued from PowerShell or cmd.exe shell correctly. Below I have PowerShell version then cmd.exe version. lpr -S '192.168.8.200' -Pfiletype=RPS -ol "C:\Users\rburnside\Desktop\Print…
0
votes
2 answers

Including .prn file with lpr command in Windows batch file

I need to do a downloadable Windows batch file (.bat) which runs lpr command on clients machine. That's easy. The hard part is that the batch file must include the data to be printed also. Everything needs to be in one downloadable-file that could…
besq
  • 155
  • 1
  • 2
  • 7
0
votes
0 answers

remote LPD on port 516

Some colleges have setup an Infoprint LPD printer on a remote host. Because of another print system using port 515 on this remote server, they have setup the Infoprint LPD on port 516. Normally I use the command below to setup a remote…
0
votes
1 answer

Is there a way to specify paper tray when using the lpr command to print PDF files through Windows batch scripting?

I am trying to set up an automatic printing solution on a Windows 2012 R2 Server. So far I have written a .bat file that loops through and prints all pdf files that are in a folder. The main command looks something like this : lpr -S…
Terence
  • 104
  • 8
0
votes
0 answers

Printing from C program

What is the correct way print file to printer from C -program? Command system("lpr /tmp/filename.prn"); generates error lpr: No file in print request. Same command in command line works perfectly. OS is Debian 9.2, kernel 4.9.0 and cups is version…
0
votes
1 answer

How to send the files in a directory to the printer in Perl?

Okay, here's what I'm trying to do: I have an email with a series of MIME attachments. I have sample code that will get me as far as creating a directory with the decoded attachments in it; what I need to do now is send the contents of that…
BrianX
  • 136
  • 4
0
votes
1 answer

Php exec can't print using cups

If i run lpr from root, or even run from apache runuser -l apache -c 'lpr -P RICOH_Aficio_2032 -r /var/www/html/website/tmp/test.txt' works like a charm. However, when i print using php_exec exec('lpr -P RICOH_Aficio_2032 -r…
dgtal
  • 193
  • 16
0
votes
0 answers

LPR command not printing Barcode of type 128 in .net core on Ubuntu

I am creating PDF file in .net core by using iTextSharp. I have used Barcode128 class of iTextSharp.text.pdf for adding bar-code to my PDF file. For printing PDF in .net core, I am using following code: string fileName =…
Purnima Naik
  • 2,393
  • 5
  • 17
  • 25
0
votes
1 answer

LPR: what is the location of the file that will be sent to the printer?

For a research project about printing nanofluids I need some more control over my Epson Stylus SX600FW. I am sending a file to the printer using lpr test.ps, then it is in the print queue. Now I want to see the file (in pdl?) that the printer driver…
rinkert
  • 6,593
  • 2
  • 12
  • 31
0
votes
0 answers

LPR vs Print Dialog. How to set lpr settings like in Print Dialog

I have problem with printing photos. There are differences between printing via GUI(print dialog/ctrl+p) and via lpr I need correct printing via terminal, how can i do it? two photos
Nimway
  • 1
  • 1
0
votes
2 answers

sequentially run functions in nodejs

I'm very new to node and have run into issues with running some functions sequentially and the use of callbacks. I have tried to use the async module, but, I think I'm missing something because it does my functions out of order. In the most simplest…
neohusky
  • 3
  • 2
0
votes
1 answer

vbsscript run cmd command with parametrs

I have a folder in witch .pcl and .ps files are written. I want those files to be printed, the only possibillity to do this if found is cmd LPR command the script is: set shApp = CreateObject("shell.application") Set oShell = WScript.CreateObject…
Taras Vykh
  • 23
  • 2
0
votes
1 answer

lpr saturation not working (CUPS)

it's a simple question, I just want to know why this command is not working for me. I'm using on terminal this: lpr -o saturation=0 nameFile.png This should print in black & white but this always is printing in color. Maybe i need to install…
Alex Perez
  • 69
  • 1
  • 9
0
votes
0 answers

placing PHP variable inside of shell_exec( ) to run lsp command

When the url .../print.php loads, I want the name of the latest file uploaded to the target directory to be printed and for that same file to simultaneously be sent to the printer connected to the server. With this code here, I am able to do…
Connor
  • 1
  • 1