> From [EMAIL PROTECTED] Wed Sep 13 04:13:19 2000
> Date: Wed, 13 Sep 2000 10:54:31 +0200
> From: Johan Claesson <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: Setting ifhp -Z options from lpr -Q.
>
> 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>;

Done.  See LPRng/UTILS/update_z for an example.

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

Patrick Powell                 Astart Technologies,
[EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
Network and System             San Diego, CA 92123
  Consulting                   858-874-6543 FAX 858-279-8424 
LPRng - Print Spooler (http://www.astart.com)

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