Daniel E Singer on wrote...
| Dear lprng-wrestlers,
|
| What I want to do:
|
| 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.
|
| What I've tried:
|
| We have a small Perl filter that runs between the LPRng system and
| ifhp. It preprocess some things like printer input tray selection
| based on printer name suffix. This is done by manipulating -Z
| options. I tried to figure out how to control header page printing
| through this mechanism (modifying -T options), but this apparently had
| no effect. If you have any suggestions on how this might work, please
| let me know, because it would be the most transparent from our printer
| setup perspective.
|
| I've tried messing with printcap file entries, to have a separate
| pr5-h stanza which then `:tc's the pr5 entry. It gets kind of messy,
| and then for some reason, use of pr5-h mysteriously introduces a very
| long time delay into the print job (maybe a couple of minutes).
| Again, I do want it to use the same queue directory, if at all
| possible.
|
| We're running LPRng-3.7.4 and ifhp-3.4.4 .
|
| Suggestions? Other ideas?
|
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".
The printcap :sh option just tells lpd wether or not to ignore
the presence or absence of the "L" line in the control file. It does
not actuual add or remove it itself.
I myself am using the "L" lines existance to control some text
formatting options, in a ifhp filter. Eg: wether to wrap the text in
the a2ps text to postscript converters title and borders, or explictally
remove them. I give the users the option.
I also use the pretty usless indent option (-i) to select the style of
output (N-up printing for both text and postscript, or a "FORM"
selection, for special printers). Works very well too!
I have a permanent :sh option as I don't actually want a seperate header
or trailer page, which is a waste of paper. But this does not affect the
precence or not of the "L" option indicating if the user had a "-h" lpr
option or not.
Anthony Thyssen ( System Programmer ) http://www.sct.gu.edu.au/~anthony/
-----------------------------------------------------------------------------
It has been proved, beyond a shadow of a doubt, that million-to-one
chances, occur nine times out of ten! --- Terry Pratchet
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.sct.gu.edu.au/~anthony/
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------