We have a Intel Netport Express Printserver that we need to be able to
generate a banner for each print job.  Previously, with the old lpd we used
a second printcap entry to force a banner.

After I upgraded to LPRng, the lp0 entry to doesn't work.  Instead I get the
following error:

# lpr -Plp0 /var/spool/lpd/lp0/ofilter
Status Information:
 sending job 'root@host+902' to lp0@localhost
 connecting to 'localhost', attempt 1
 connected to 'localhost'
 requesting printer lp0@localhost
 sending control file 'cfA902host.domain.com' to lp0@localhost
 job 'root@host+902' transfer to lp0@localhost failed
  error 'ERROR TRANSFERRING DATA'
  sending file 'cfA902host.domain.com' to lp0@localhost

printcap:
=========
lp0|lp|oki|oki2410|Okidata 2410 Printer:\
        :sd=/var/spool/lpd/lp0:\
        :mx#0:\
        :pw#132:\
        :lp=/dev/null:\
        :lf=/var/log/lpd.log:\
        :of=/var/spool/lpd/lp0/ofilter:
rlp0|Remote Okidata 2410 Printer:\
        :sd=/var/spool/lpd/rlp0:\
        :mx#0:\
        :pw#132:\
        :rm=pserv3:\
        :rp=LPT1_TEXT:\
        :sh:\
        :sf:\
        :lf=/var/log/lpd.log:\
        :if=/var/spool/lpd/rlp0/filter:\
        :sh:

ofilter:
========
#!/bin/sh
/bin/cat | lpr -Prlp0 && exit 0
exit 2

I tried removing :sh: and adding :ab: to the printcap entry for rlp0, and it
still didn't print a banner.

How do I set up the printcap entries to print a banner on the remote
printserver?
Can this now be done with one printcap entry?

Thanks,

Scot






-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------


-----------------------------------------------------------------------------
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