On Thu, 31 Oct 2002, Anthony Thyssen wrote:

 > Daniel E Singer on  wrote...
 ...
 > | I'm having trouble figuring out how to select the `:sh' (suppress
 > | header page) option via printer NAME.  That is, for the benefit of our
 > | Samba interface to our printing system (running on Solaris), we want
 > | the PC people to be able to select (or not select) the equivalent of
 > | "lpr -h"  through which printer they select.  So, from the Windows PC
 > | perspective, printing to, say, printer pr5 would print with a header
 > | page, and printing to printer pr5-h would print without a header page.
 > | I want this to still go through only one queue directory for this
 > | printer on the lprng server.
 ...
 > | We're running LPRng-3.7.4 and ifhp-3.4.4 .
 ...
 >
 > It is rather simple.  All the lpr -h flag does is remove the
 > "L" line from the control file being passed to the lpd server.
 >
 > As such the easy way to fix this is to add a
 >   :incoming_control_filter={small postscript}
 >
 > that either removed the line starting with "L" or
 > is no line was present, add one by duplicating the "P" line
 > replacing the "P" with an "L".
 ...

I finally got around to trying this particular solution ... and it
does not work.  Even if I successfully remove (or add) the "L" line in
the cf* file (via :incoming_control_filter), the change that I make is
not reflected in the hf* file, and it seems that the latter one is the
one that lpd is actually paying attention to.  For example, the line

        L=des

is still in the hf* file (which is poorly documented in the
LPRng-3.7.4 HOWTO), and the header still gets printed.  If I stop the
queue and edit the hf* file by hand to remove that line, *then* I
don't get the header page.  I wonder if this is "fixed" in a later
LPRng version?  I'd update LPRng if it weren't such a huge pain in the
$*% to do...

Thanks.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


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