Drucken auf einen Netzdrucker
 
1.
==> pkg_add gv* 
(bzw. installen von ghostscript) 
==> pkg_add a2ps* 
--asc-to-ps-example----------------------------------------
a2ps -R -B --margin=10 --columns=1 --borders=1 --font-size=10 -o bla.ps bla.txt
-----------------------------------------------------------

2.
edit /etc/printcap: 
--printcap-example-----------------------------------------
lp|remote line printer:\
        :lp=:rm=192.168.109.33:\
        :rp=lp:sd=/var/spool/lpd:lf=/var/log/lpd-errs:
-----------------------------------------------------------

3. edit /usr/local/bin/filter.sh:
               (Suche nach dem DEVICE mittels: gs -h)
--filter.sh-example----------------------------------------
#!/bin/sh
/usr/local/bin/gs -q -dSAFER -dNOPAUSE \
-r300 -sPAPERSIZE=a4 -sDEVICE=ljet4 \
-sOutputFile=- -
-----------------------------------------------------------

4. lpd starten ...

5. cat bla.ps | filter.sh | lpr

Nachtrag: Wer keine Banner-Page gedruckt haben moechte nehme 'lpr -h'.


--
I.S.