lpd print filters of= output filters


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



Subject: Re: Enhanced Lpd SCO osr505 References: <12e44768.0204231448.273528b6@posting.google.com> <3cc5e81e$0$79553$8eec23a@newsreader.tycho.net> <ph9dcuchtr16ov3emdof5q91dme4aslalm@4ax.com>
From: spcecdt@deeptht.armory.com (John DuBois)
Date: 24 Apr 2002 23:33:34 GMT


Hate these ads?




In article <ph9dcuchtr16ov3emdof5q91dme4aslalm@4ax.com>,
Gary Quiring  <gquiring@msn.com> wrote:
>On 23 Apr 2002 23:02:55 GMT, spcecdt@deeptht.armory.com (John DuBois) wrote:
>
>>In article <12e44768.0204231448.273528b6@posting.google.com>,
>>Pimpollo <sillygu@hotmail.com> wrote:
>>>Does anyone have a copy of the enhanced "lpd" that supports the "of"
>>>option (filters)?
>>
>>"of" has always been supported by lpd for local printers.  A version enhanced so
>>that "of" works for remote printers was shipped in 5.0.6a.
>>
>>        John
>Does it  work?  It's been in the man pages for years and never did in any prior
>release.  Did SCO actually fix it??



It always did work, for local printers only, but not in the way the man page
described.  The man page erroneously indicates that lpd filters have something
to do with lpfilter, which is incorrect.  The "of" capability is simply the
path to an executable to pipe the job through.
It didn't work for remote printers because we used the stock BSD lpd code,
which ignored the "of" capability for remote printers because it turns out to
be slightly more complicated.  And yes, it definitely works now; I added the
neccessary functionality.
Unfortunately the man page still refers to lpfilter; that should be fixed in
5.0.7.  Here's how you actually use "of":














If you set "of" to the path to a program, the program will be invoked
with two arguments, like this:



rm=132 -l66



rm=132 indicates that the paper right margin is at the 132nd column,
and -l66 indicates that the page length is 66 lines.


Versatile Site Map Generator $49.00
A1 Sitemap Generator



Just setting of=/path/to/filter-program won't work if that program isn't
prepared to deal with those arguments.  If you want to use such a program,
create a front end for it that discards any arguments.  E.g. set
of=/usr/local/myfilter and make myfilter a two-line shell script:



#!/bin/ksh
exec /path/to/filter-program



        John
-- 
John DuBois  spcecdt@armory.com  KC6QKZ/AE  http://www.armory.com/~spcecdt/


Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them.

I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.




Comments


Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments

If you want a picture to show with your comment, go get a Gravatar



/Bofcusm/1556.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!





More:
       - Newsgroup












Change Congress