Hallo,
ich möchte per Kommandozeile eine PS-Datei drucken. Dabei soll neben dem Drucker auch der entsprechende Druckerschacht angegeben werden können.
Besten Dank im Voraus
Torsten
Linux 15.029 Themen, 107.058 Beiträge
Ich habe noch mal in der Dokumentantion von CUPS nachgesehen:
http://localhost:631/sum.html#CONTENTS
.....
3 - Standard Printer Options
This chapter describes the standard printer options that are available when printing with the lp and lpr commands.
General Options
The following options apply when printing all types of files.
Selecting the Media Size, Type, and Source
The -o media=xyz option sets the media size, type, and/or source:
lp -o media=Letter filename ENTER
lp -o media=Letter,MultiPurpose filename ENTER
lpr -o media=Letter,Transparency filename ENTER
lpr -o media=Letter,MultiPurpose,Transparency filename ENTER
The available media sizes, types, and sources depend on the printer, but most support the following options (case is not significant):
* Letter - US Letter (8.5x11 inches, or 216x279mm)
* Legal - US Legal (8.5x14 inches, or 216x356mm)
* A4 - ISO A4 (8.27x11.69 inches, or 210x297mm)
* COM10 - US #10 Envelope (9.5x4.125 inches, or 241x105mm)
* DL - ISO DL Envelope (8.66x4.33 inches, or 220x110mm)
* Transparency - Transparency media type or source
* Upper - Upper paper tray
* Lower - Lower paper tray
* MultiPurpose - Multi-purpose paper tray
* LargeCapacity - Large capacity paper tray
The actual options supported are defined in the printer's PPD file in the PageSize, InputSlot, and MediaType options.
Upper - Upper paper tray
Lower - Lower paper tray
Ich weiß nicht ob du damit was anfangen kannst. Meine beiden Drucker haben nicht so eine Option. Ich stand deshalb auch noch nicht vor diesem Problem.
lpr -PDruckerwarteschlange -o media=xyz Datei.ps
