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
2
votes
1 answer

How to avoid delays printing LPR using batch file

I was submitting print jobs to a Ricoh copier/printer via LPR and was getting strange delays. Prints 11 print jobs then waits 1 minute 14 seconds. Repeats print and delay cycle until the end. Why the delay and what can I do to avoid the delay? I…
D_Bester
  • 5,723
  • 5
  • 35
  • 77
2
votes
1 answer

Python watchdog not processing all files in Windows?

Got this watchdog looking at a folder and using a handler to LPR all newly created files to a specific printer (defined on a command prompt batch). Problem is that when you submit a lot of files the watchdog will only process 8, 9, 10 or 11 of…
slick
  • 23
  • 5
2
votes
3 answers

How to get Hikvision DeepinViews license plate number from URL?

I cant find the solution anywhere and mine doesn't seem to work. I just want to see the last plate string in the browser,or the few last plates,doesn't…
Master
  • 135
  • 1
  • 11
2
votes
1 answer

Get plates from Hikvision LPR camera (returning only the last 20 plates) How to retrieve more?

I want to retrieving plates from LPR Hikvision camera but xml file returns only last 20 plates. Someone can help me to define correctly xml parameters to retrieve more registries? POST URL: .../ISAPI/Traffic/channels/1/vehicleDetect/plates POST…
PP.TT
  • 31
  • 3
2
votes
0 answers

How do you get good line spacing with lpr?

I'm using lpr with the following flags: lpr -o cpi=12 -o lpi=8 -o page-left=36 -o page-top=36 -o page-bottom=36 But the lines appear too close together. But if I decrease lpi to 6 or something, the font just gets taller. What I really want is…
dan
  • 43,914
  • 47
  • 153
  • 254
2
votes
0 answers

Windows Print PDF with LPR from Command Line prints as text

When I try to print a PDF via lpr at the command prompt, the pdf is interpreted as text and garbage prints. I have tried all of the following: lpr -S PRINTSVR -P LP4081 c:\sample.pdf lpr -S PRINTSVR -P LP4081 -ol c:\sample.pdf lpr -S PRINTSVR -P…
2
votes
0 answers

Why saturation=0 is not working on my printer for lp or lpr command?

I am trying lp -o saturation=0 -o /file/path This is a coloured pdf file and I want a black and white printout of it. Why am I still getting colour print out? Where am I mistaking? My printer is : HP Deskjet Ink Advantage 1515
user1532043
  • 859
  • 2
  • 15
  • 26
2
votes
1 answer

lpr: Error - unknown option "V"

I am getting this error when trying to run the lpr command: lpr: Error - unknown option "V". My full command I am running is lpr -V -P printer-1 file.txt According to the documentation here…
benjovanic
  • 537
  • 1
  • 5
  • 18
2
votes
1 answer

Print PCL file using LPR in C#

I'm trying to print pcl file using lpr command. here my C# application create a new process to invoke lpr command with argument includes pcl file name and few more. but now i'm facing issue because lpr command only accept 128 length file names. But…
Nayana Adassuriya
  • 23,596
  • 30
  • 104
  • 147
2
votes
2 answers

Unhandled C# Exception during an LPR process

I'm creating a C# app that should use lpr.exe and pass arguments to it. I'm currently trying to do it this way: DirectoryInfo filePathDirectory = new DirectoryInfo(filePath); Process a = new Process(); a.StartInfo.FileName =…
Ben
  • 704
  • 4
  • 10
  • 25
1
vote
1 answer

ANPR events with picture Hikvision Node

I have subscrived to the events of a Hikvision camera doing a get request to /ISAPI/Event/notification/alertStream. I am interested in ANPR events, this type of events return a multipart response which includes an xml with the event info, a license…
1
vote
0 answers

Print diffrent type files with lpr at once

I want to print different files using lpr command to a thermal printer. They need to be printed at once because they're from the same receipt. If I use the following commands lpr -P POS58 aux.txt lpr -P POS58 qr.bin They are printed fine but there's…
Kuznov
  • 11
  • 1
1
vote
3 answers

Check execute command after cheking file type

I am working on a bash script which execute a command depending on the file type. I want to use the the "file" option and not the file extension to determine the type, but I am bloody new to this scripting stuff, so if someone can help me I would be…
John
  • 11
  • 1
1
vote
0 answers

OCR in pytorch/keras with LPRNet and CTCLoss doesn't converge

I implemented LPRNet from this paper in keras and then in pytorch. For pytorch was used this code as example. It didn't converge in any version. Loss starts at 30 and goes to 27 even after 150000 epochs. In pytorch version I am not using validation,…
1
vote
0 answers

Print from Specific Tray with LPR Command

I am using a PHP exec function to run an LPR command on the server, in order to print a PDF generated by a web application. This is so that the web app can print files for the user without them needing to go through the browser print dialog and…
user350813
  • 29
  • 6