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.






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/





Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner





Views for this page
Today This Week This Month This Year  Overall
1118232 1,359

/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

More:
       - Newsgroup




Unix/Linux Consultants


http://www.vss3.com SCO/Caldera OpenServer, Unixware & Linux. Tarantella & Non-stop Clustering


http://echo3.net/ Unix/Linux Custom Applications, Web Hosting, C/C++ Programming Courses


http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.



Twitter
  • Nov 23 13:01
    I need coffee before I will even open the door, never mind go out there. That's completely non-negotiable, by the way.
  • Nov 23 12:56
    It's COLD and my wife wants us to go work in the yard. Do you think I can have her arrested for cruelty? Probably not as she's going too.









Change Congress


Related Posts