Pekka Savola wrote:
>
> Hello all,
>
> We're using printer aliases (printcap is like
> printer|printer-2s|printer-a3|...) to make sure older/Windows clients can
> print duplex and other special modes gracefully.
>
> When I implemented this in LPRng, I had to create a special 20-line
> wrapper for ifhp that'd see if there were any printer name specials in -Q
> strings, and change them to corresponding ifhp -Z options.
>
> Are there easier or _better_ ways to do this?
Yes, use the "incoming_control_filter" option.
See section 4.32.4 in the HOWTO.
http://www.astart.com/lprng/LPRng-HOWTO.html#INCOMINGCONTROLFILTER
Patrick, the example perl script doesn't work.
Change the line:
@file = <>; -> @file = <STDIN>;
BR /Johan
--
Ericsson Network Core Products
Unix Systems Management [EMAIL PROTECTED]
Box 1505 Phone: +46 8 727 30 95
S-125 25 �LVSJ�, Sweden Fax: +46 8 647 82 76
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------