On Sun, Jan 28, 2001 at 08:54:08PM -0600, Kent West wrote: > Carel Fellinger wrote: > > > On Sun, Jan 28, 2001 at 06:45:18PM -0600, Kent West wrote: ... > >> I have magicfilter installed, and I suspect that if I could feed my > >> printjobs through it these issues would be fixed; however, I don't know > >> how to use magicfilter since the if in my printcap is taken by the > >> smbprint script. > > > > not being a printer man I thought that adding a redirection level > > (with :rp:) in your printcap would solve this, like > > > > lp:smb-printer:\ > > :lp=:rp=raw-smb-printer:sh:\ > > :sd=/var/spool/lpd/smb-printer:\ > > :if=/your/magic-filter/here: > > > > raw-smb-printer:\ > > :lp=/dev/null:sh:\ > > :sd=/var/spool/lpd/raw-smb-printer:\ > > :if=/usr/local/samba/bin/smbprint: > > > > > First, the rm= trick you sent doesn't seem to be working. Now the > printer's not receiving anything.
Arch, should have used a bouch queue, here is one way to do it But beware, I use LPRng and LPRng supports bounce queues. dj970-smb|HP Deskjet 970 on WinGame :rp=dj970-smb-raw:lpd_bounce :tc=.spool,.log,.acct,.defaults :if=/etc/magicfilter/dj550c-filter :bq_format=l dj970-smb-raw|raw HP Deskjet 970 on WinGame :lp=/dev/null :tc=.spool,.log,.acct,.defaults :if=/etc/samba/smbprint I had to edit smbprint slightly as indicated below, it's working here:) > while getopts t c; do > case $c in > t) > TRANS=1 > ;; > > '?') # Bad parameters, ignore it ... > ;; > esac > done This whole getopts thing isn't working here, probably because I use LPRng so I commented it out. It's here only to cache the `translate on' flag, but I've done tekst-nl conversion with magic-filter. > ( > # NOTE You may wish to add the line `echo translate' if you want automatic > # CR/LF translation when printing. > if [ $TRANS -eq 1 ]; then > echo translate > fi I uncommentd the above three lines, again nl-translation is done with magic-filter -- groetjes, carel