[ LUGOS ] PS

Jernej Horvat jernej.horvat na uni-mb.si
Pon Jun 30 21:14:38 CEST 1997


> Date:          Mon, 30 Jun 1997 09:53:54 +0200 (CEST)
> From:          Metod Kozelj <metod.kozelj na rzs-hm.si>
> Subject:       Re: [ LUGOS ] PS

> #!/bin/sh
> gs -q -dSAFER -dNOPAUSE -sDEVICE=ljet4 -r600 -sOutputFile=- - quit.ps | lpr -Praw

Eto moj /etc/printcap 

lp:lp=/dev/lp1:sd=/var/spool/lpd/lp:sh:sf:mx#0:
txt:lp=/dev/null:sd=/var/spool/lpd/txt:sh:mx#0:\
:if=/var/spool/lpd/txt/txt:
ps:lp=/dev/null:sd=/var/spool/lpd/ps:sh:mx#0:\
:if=/var/spool/lpd/ps/ps:

/var/spool/lpd/ps/ps:
#!/bin/sh
gs -q -dSAFER -dNOPAUSE -sDEVICE=ljet4 -r600 
-sPAPERSIZE=a4 -sOutputFile=- -|lpr -Plp

Ker imam lp kot modul in preko IRQ sem moral v conf.modules dodati:
options lp io=0x3bx,0x378 irq=0,7

Kako pa je s tiskanjem Unix txt datotek ?
Probal sem s Perlom:

#!perl
while (<stdin>) {chop $_; print "$_\r\n";);

No go....

PS: Opazil sem da mora filter datoteka  imeti r+x permissions za 
world.

                                            Jernej Horvat

...Line noise provided by Telekom Slovenija - a remarkable bunch of idiots.

               > All the standard disclaimers apply. <




Dodatne informacije o seznamu Starilist