We're new to LPRng on Red Hat 7.3 (after unhappy CUPs testing) and we're 
confused about the mf.cfg file. We generate our own PCL code from our 
application but users also sometimes send text files from the shell with lp 
commands. The problem we are having is that an extra blank page is sent at 
the end of each PCL job (text file jobs sent from lp commands are okay).

The offending part of the configuration appears to be the foomatic mf.cfg 
file in the /var/spool/lpd/<printer> directory:

-------------
# foomatic/magicfilter configuration
# Make:         HP
# Model:        LaserJet 4000
# Printer Id:   100576
# Driver:       Postscript
# TERMINATION=
# FILTER_LOCALE=C
# GS_PAPERSIZE=letter

define(MAKE, `HP')dnl
define(MODEL, `LaserJet 4000')dnl
define(COLOR, `false')dnl
define(PAGEsize, `Letter')dnl
define(TEXTfilter, text "" \r\n\14 )dnl
define(PSfilter, `filter /usr/share/printconf/util/mf_postscript_wrapper 
'``LPRN
GOPTS''`  --mfomatic Postscript-100576.foo')dnl
define(PDFfilter, `filter /usr/share/printconf/util/mf_postscript_wrapper 
'``LPR
NGOPTS''`  --mfomatic Postscript-100576.foo')dnl (Same as PS filter for now)
define(PCLfilter, `cat')dnl
define(PJLfilter, `cat')dnl
define(DEFAULTfilter, text "" \r\n\14 )dnl
-------------

If we modify the TEXTfilter and the DEFAULTfilter lines as follows:

define(DEFAULTfilter, text "" )

we stop wasting paper. But as the VOLATILE file states, when we restart lpd 
(with PRINTCONF_FORCE_REBUILD=1) the mf.cfg file gets rebuilt. (Removing the 
VOLATILE file doesn't help as the comments in the file seem to imply.)

Where do we tell printconf (or is it the LPRng system?) not to do this? Or 
where should we be setting the define for the DEFAULTfilter/TEXTfilter?

Thanks for the great printing system, and many thanks in advance for your 
help.


--Karl

_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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