Druck aus Shel
Also ich bekomme den Druck von Barcodes mit dem Linuxprogramm "barcode" leider auch nicht hin. Ich möchte für ein kleines selbstgeschriebenes Programm (oder besser Shel-skript) Barcodes auf einen Epson Nadeldrucker drucken. Der Drucker ist durchaus dazu in der Lage. Er Druckt besipielsweise aus einem Dosprogramm einwandfreie Barcodes (EAN).
Gebe ich aber in die Linuxmaschiene beispielsweise ein:
linux:~ # barcode -b 9783593382647 | lpr
so druckt mein Drucker:
linux:~ # barcode -b 9783593382647
%!PS-Adobe-2.0
%%Creator: "barcode", libbarcode sample frontend
%%DocumentPaperSizes: A4
%%EndComments
%%EndProlog
%%Page: 1 1
% Printing barcode for "9783593382647", scaled 1.00, encoded using "EAN-13"
% The space/bar succession is represented by the following widths (space first):
% 911113123121114112312113141111111141112132122111411321312111
[
% height xpos ypos width height xpos ypos width
[75.00 19.50 15.00 0.85] [75.00 21.50 15.00 0.85]
[70.00 24.50 20.00 2.85] [70.00 28.00 20.00 1.85]
[70.00 32.50 20.00 0.85] [70.00 35.50 20.00 0.85]
[70.00 37.50 20.00 0.85] [70.00 42.50 20.00 0.85]
[70.00 45.00 20.00 1.85] [70.00 49.50 20.00 0.85]
[70.00 52.50 20.00 0.85] [70.00 55.50 20.00 2.85]
[70.00 60.00 20.00 3.85] [70.00 63.50 20.00 0.85]
[75.00 65.50 15.00 0.85] [75.00 67.50 15.00 0.85]
[70.00 69.50 20.00 0.85] [70.00 74.50 20.00 0.85]
[70.00 76.50 20.00 0.85] [70.00 79.50 20.00 0.85]
[70.00 84.00 20.00 1.85] [70.00 87.00 20.00 1.85]
[70.00 90.50 20.00 0.85] [70.00 92.50 20.00 0.85]
[70.00 97.50 20.00 0.85] [70.00 100.50 20.00 2.85]
[70.00 104.50 20.00 0.85] [70.00 108.50 20.00 0.85]
[75.00 111.50 15.00 0.85] [75.00 113.50 15.00 0.85]
] { {} forall setlinewidth moveto 0 exch rlineto stroke} bind forall
[
% char xpos ypos fontsize
[(9) 10.00 10.00 12.00]
[(7) 22.00 10.00 0.00]
[(
29.00 10.00 0.00]
[(3) 36.00 10.00 0.00]
[(5) 43.00 10.00 0.00]
[(9) 50.00 10.00 0.00]
[(3) 57.00 10.00 0.00]
[(3) 69.00 10.00 0.00]
[(
76.00 10.00 0.00]
[(2) 83.00 10.00 0.00]
[(6) 90.00 10.00 0.00]
[(4) 97.00 10.00 0.00]
[(7) 104.00 10.00 0.00]
] { {} forall dup 0.00 ne {
/Helvetica findfont exch scalefont setfont
} {pop} ifelse
moveto show} bind forall
% End barcode for "9783593382647"
showpage
%%Trailer
Wie bekomme ich den PC dazu, das er mir die üblichen Strichmuster auf dem Drucker ausgibt?