Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enhanced Lpd SCO osr505

1 view
Skip to first unread message

Pimpollo

unread,
Apr 23, 2002, 6:48:55 PM4/23/02
to
Does anyone have a copy of the enhanced "lpd" that supports the "of"
option (filters)?

Thanks

John DuBois

unread,
Apr 23, 2002, 7:02:55 PM4/23/02
to
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
--
John DuBois spc...@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/

Gary Quiring

unread,
Apr 24, 2002, 8:35:02 AM4/24/02
to
On 23 Apr 2002 23:02:55 GMT, spc...@deeptht.armory.com (John DuBois) wrote:

>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

unread,
Apr 24, 2002, 6:30:08 PM4/24/02
to
I'm running OSR505, is there an enhanced lpd for 5.0.5? Can use the
one shipped in 5.0.6.a?

Pimpollo

Gary Quiring <gqui...@msn.com> wrote in message news:<ph9dcuchtr16ov3em...@4ax.com>...

John DuBois

unread,
Apr 24, 2002, 7:33:34 PM4/24/02
to
In article <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

Pimpollo

unread,
Apr 26, 2002, 5:05:26 PM4/26/02
to
spc...@deeptht.armory.com (John DuBois) wrote in message news:<3cc740ce$0$79557$8ee...@newsreader.tycho.net>...

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.

John DuBois

unread,
Apr 26, 2002, 7:25:31 PM4/26/02
to
In article <12e44768.02042...@posting.google.com>,
Pimpollo <sil...@hotmail.com> wrote:
>I'm running OSR505, is there an enhanced lpd for 5.0.5? Can use the
>one shipped in 5.0.6.a?

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.

0 new messages