I'm obviously missing *something* here, so hopefully someone here can
point out what it is.

When a client machine printing to 9101, the print is filtered
appropriately.  If I'm directly on the print server itself, and I print to
9101, it is sent to ky1 unfiltered.

Relevant printcap entries:

.common:sd=/var/spool/lpd/%P
.kyocera:lpd_bounce:if=/usr/kyocera/kyocera.fpi:tc=.common
9101:lp=ky1@localhost:tc=.kyocera
ky1:lp=ky1%9100:tc=.common

kyocera.fpi script (comments removed to shorten mail length):

#!/bin/sh
KYOCERADIR=/usr/kyocera
typeset -i DIRWC=$(echo $PRINTER|wc -c)
typeset -i OFFSET=DIRWC-2
typeset -i PTYPE=$(echo $PRINTER|cut -c$OFFSET-)
case $PTYPE in
    1) echo -n "!R! RES; SPO P; SLPP 66; SPSZ 6, 8; SLM .0; STM .17; SBM 10.37; SLPI 
6.5; EXIT;";;
    2) echo -n "!R! RES; SPO P; SLPP 66; SPSZ 6, 8; SLM .0; STM .17; SBM 10.37; SLPI 
6.5; DUPX 1; EXIT;";;
    3) echo -n "!R! RES; SCS .08; SPO L; SLPP 66; SPSZ 6; SLM .0; STM .16; SBM 8.16; 
SLPI 8.25;  EXIT;";;
    4) echo -n "!R! RES; SCS .08; SPO L; SLPP 66; SPSZ 6; SLM .0; STM .16; SBM 8.16; 
SLPI 8.25; DUPX 1; EXIT;";;
    5) echo -n "!R! RES; SPO P; SLPP 66; SPSZ 6, 8; SLM .0; STM .17; SBM 10.37; SLPI 
6.5; DUPX 2; EXIT;";;
esac
sed -e 's/$/'`echo -ne '\r'`'/g'
exit 0


Thanks,

---------------------------------
Brad Hartin - [EMAIL PROTECTED]
Straus-Frank Enterprises Limited


-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to