Questions tagged [lpr]

16 questions
5
votes
2 answers

LPR command won't recognize CUPS printer

I have a cups server with one shared printer configured on it. It prints test pages without problems. printername (Idle, Accepting Jobs, Shared) Description: desc Location: Driver: Zebra ZPL Label Printer (grayscale, 2-sided…
Datapimp23
  • 181
  • 1
  • 3
  • 21
2
votes
3 answers

What LPR arguments do I need to print a 1400x800 pixel image on a 4x6 label?

This is driving me nuts. UPS sends our system a 1400x800 GIF image of a shipping label, which is supposed to fit nicely on a 4x6 page. Unfortunately, I can't seem to get the command line options right to make it happen. We're using an Eltron/Zebra…
Nick
  • 4,433
  • 29
  • 67
  • 95
2
votes
1 answer

LPR Printing InputSlot Issues

I am printing from a Unix system to a Xerox Phaser 4510 (altho I have also had issues printing to a Xerox WorkCentre 7765). I am using LPR and trying to choose the InputSlot The lpoptions show the following options: InputSlot/Paper Tray: Tray1…
Jimmy
2
votes
1 answer

number of characters per line printed by lpr

How do I set the number of characters per line when printing a file using lp or lpr? It seems like it's fixed at 80.
neesh
  • 121
  • 4
1
vote
1 answer

macOS will not print to an LPR printer on different subnet

We have a fairly extensive campus network consisting of multiple subnets connected by a core router. Everything has been working fine for years, but recently I have a number of macosx clients that refuse to print to a network printer (LPR) on a…
1
vote
0 answers

lpr command: no prints and no error

PROBLEM: no prints and no output (and no errors) for 'lpr -P printername file.txt' DETAILS: I have the same CUPS installation in two different servers. In one of this server lpr command works and prints are ok. In the other no prints and no output…
Sam
  • 151
  • 4
1
vote
3 answers

LPR on Windows: Can you specify # of copies?

In Linux, you can use lpr -#5 foo.txt to get 5 copies of a document when sending to an LPD-based print server. The Windows (XP, 2003, 2008) version of LPR supplied by MS doesn't seem to have this option, though. Does anyone know if there's a…
Bill
  • 31
  • 4
1
vote
1 answer

How to print from sh file

File prindi.sh contains /usr/bin/lpr –P SL-M3325ND
Andrus
  • 169
  • 4
  • 11
1
vote
1 answer

Why do lp and lpr return unauthorized?

I'm running Ubuntu 10.04 with latest updates. Here are my system's protections for lp and lpr. root@steamboy:/usr/bin# ls -l lp -rwxr-xr-x 1 root root 13540 2011-09-12 10:41 lp root@steamboy:/usr/bin# ls -l lpr -rwxr-xr-x 1 root root 13540…
octopusgrabbus
  • 175
  • 5
  • 20
1
vote
2 answers

Why do I get an "No default printer" error when using "ssh lpr" but not when I ssh in?

I have a remote (linux) server that I ssh to from my (also linux) pc to print my stuff. Everything works if I do: ssh ${remote_server} (now in remote server) lpr readme.txt Or: ssh ${remote_server} lpr readme.txt -P$PRINTER …
alexloh
  • 113
  • 3
0
votes
0 answers

Printing HTTPS Webpages in CLI

I have a CentOS 6.6 server, and I am trying to print https://* webpages using the following commands: html2ps https://mywebsite/blah.html | lpr My printer prints out a paper for all HTTPS print jobs, but only prints out "IB" in the top right. Very…
madhatter
  • 1
  • 2
0
votes
1 answer

How can i print to an alternate LPD port from Windows Server 2012?

I have a Mac setup using LPD to a remote printer/port and it works great. I'm trying to add the same printer on a Windows server and it fails. I've tried standard TCP/IP port specifying the IP as 9.3.3.3:1234 and also LPR Port. With Standard TCP…
andyknas
  • 113
  • 1
  • 7
0
votes
1 answer

lpr command is different on the dev and production machine?

I'm printing some files (labels) directly from the server. On my development machine (Xubuntu 12.04) the following works: lpr -P QL-720 -H 192.168.171.53 /tmp/labels/OAQRJECIDP On the production server (Ubuntu 12.04 server) it does not. I get a…
Shreko
  • 139
  • 8
0
votes
1 answer

LPR Print Queue to File output Windows Server

How can I set up a LPR Print Queue on a Windows 2008 Server and redirect the queued reports to a file location on the network?
0
votes
2 answers

printing directly to (not from) php

Would it be possible to create a php script on a local server that could handle printing? I'm not sure it's possible, but am curious.... I'm thinking... create a local printer, use custom port TCP/IP port that points to a PHP script that…
stormdrain
  • 1,377
  • 7
  • 28
  • 51
1
2