Thanks
"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
--
John DuBois spc...@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
>In article <12e44768.02042...@posting.google.com>,
>Pimpollo <sil...@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??
GaryQ
Pimpollo
Gary Quiring <gqui...@msn.com> wrote in message news:<ph9dcuchtr16ov3em...@4ax.com>...
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
Local printing I dont' have a problem with. It's with a remote
printer that I'm having issues that uses lpd. But the lpd doesn't
support filters for remote printers.
I think you should be able to use the lpd shipped with 5.0.6a.
You will also need /usr/lib/libsocket.so.2 and /usr/lib/libresolv.so.1.
Note: I haven't tested this.