Printer

lpadmin -p <queue> -v <device> \ -P <PPD-file> -E

example:

lpadmin -p ps -v socket://10.0.0.200:9100/ -P \ /usr/share/cups/model/Postscript-level1.ppd.gz -E

or

lpadmin -p ps -v parallel:/dev/lp0 -P \ usr/share/cups/model/Postscript.ppd.gz -E

Generate a print job:

lpr -P color chart.ps
lp -d color chart.ps
lpq -P printr
lpq -a

SAP

Configured printers:

/usr/sap/lprng/etc/printcap

Home printer:

/usr/sap/lprng/spool/<queuename>

Start/ stop spooler:

/usr/sap/lprng/bin/lprng.sh start | stop
/usr/sap/lprng/bin/lprng.sh stop && /usr/sap/lprng/bin/lprng.sh start

Status/ display current printer queue:

/usr/sap/lprng/bin/lpq -PPrintername

Pid:

/usr/sap/lprng/run/lpd.*

Disable queue-entry:

./lpc disable <queuename>

Enable queue-entry:

./lpc enable <queuename>

Disable exit:

./lpc stop <queuename>

Enable exit:

./lpc start <queuename>

Switch off entry and exit:

./lpc down <queuename>

Switch on entry and exit:

./lpc up <queuename>

Kill printqueue:

./lpc kill <queuename>

Delete one job:

/usr/sap/lprng/bin/lprm -PPrintername <job-nr>

Delete all jobs:

/usr/sap/lprng/bin/lprm -PPrintername all 
linux/print.txt · Last modified: 2018/05/28 10:30 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki