#!/bin/bash |
So all I do is create a text file (from cut and paste or a macro or program or whatever) that looks like this:
Steve Litt
359 Treeline Place
Apopka, FL 32703
John JonesAssuming the text file is called johnjones.env, all I do is place the envelope in the feeder, and then run this command:
222 w 2nd
Greenville, FL 32323
envv johnjones.env
If the envelope isn't to your liking, experiment with the font and
margins.|
If you don't have the a2ps program on your system (it would probably be in /usr/bin), you can download the RPM. Go to http://www.rpmfind.net, and search for a2ps. |
Call the following script envv, and put it on your path --
hopefully somewhere that won't get blown off the next time you
reinstall:
#!/bin/shSee that -M Littenv? It means "media name Littenv". What is Littenv, you may ask? I inserted the following line into my /etc/a2ps.cfg to implement the Littenv media type:
a2ps -r -columns=1 -f14 -M Littenv -P lp -B -i --borders=no $1
Medium: Littenv 297 1324 170 140 440 1420Note that according to the documentation the preceding media shouldn't work at all. After discovering that the docs didn't match reality, I simply trial and errored till I got a working media.
So all I do is create a text file (from cut and paste or a macro or program or whatever) that looks like this:
Steve Litt
359 Treeline Place
Apopka, FL 32703
John Jones
222 w 2nd
Greenville, FL 32323
Then, if I called that file env.txt I just go
$ envv env.txtAnd my envelope prints out with nice 14point letters, properly placed.
I use a HP 4050. I'm sure your mileage will vary, but I'm equally sure you can do something like this to suit your envelope needs.
SteveT