LPD Printing and using Filters

I have gotten remote printing working via the lpr command and all works
fine. But I am having difficulties getting filters to work at all. I have
a couple of programs that take stdin as input and then output the result to
stdout and can then pipe it to the lpr, but I would like to use filters in
the future.

Regards,
Matt

One common trap for new players is that filters only work for local
printers, not remote printers. IOW the if= (etc) entries are ignored for
remote printers.

If you want to use a filter for a remote printer, you typically have to
create two entries in your printcap file, one for the real remote printer,
and one as a ‘virtual’ local printer which simply does the filtering and
then sends the post-filter output to the remote printer.

Hope that makes sense. I can dig up an example printcap file if you need it.

Rob Rutherford

“Matthew S. Blackburn” <blackburnms@rapistan.com> wrote in message
news:8p3cvl$fnh$1@inn.qnx.com

I have gotten remote printing working via the lpr command and all works
fine. But I am having difficulties getting filters to work at all. I
have
a couple of programs that take stdin as input and then output the result
to
stdout and can then pipe it to the lpr, but I would like to use filters in
the future.

Regards,
Matt

An example would be great. I found a bit of one when discussing the lpsrvr
but I don’t necessarily want to use that if I don’t have to.

Thanks,
Matt

“Robert Rutherford” <ruzz@ruzz.com> wrote in message
news:8p3rsk$n6m$1@inn.qnx.com

One common trap for new players is that filters only work for local
printers, not remote printers. IOW the if= (etc) entries are ignored for
remote printers.

If you want to use a filter for a remote printer, you typically have to
create two entries in your printcap file, one for the real remote printer,
and one as a ‘virtual’ local printer which simply does the filtering and
then sends the post-filter output to the remote printer.

Hope that makes sense. I can dig up an example printcap file if you need
it.

Rob Rutherford

“Matthew S. Blackburn” <> blackburnms@rapistan.com> > wrote in message
news:8p3cvl$fnh$> 1@inn.qnx.com> …
I have gotten remote printing working via the lpr command and all works
fine. But I am having difficulties getting filters to work at all. I
have
a couple of programs that take stdin as input and then output the
result
to
stdout and can then pipe it to the lpr, but I would like to use filters
in
the future.

Regards,
Matt
\

Wow this is Great, only 1 response in a week and a half. The answer wasn’t
even from QNX support it was from another user.

“Matthew S. Blackburn” <blackburnms@rapistan.com> wrote in message
news:8p3cvl$fnh$1@inn.qnx.com

I have gotten remote printing working via the lpr command and all works
fine. But I am having difficulties getting filters to work at all. I
have
a couple of programs that take stdin as input and then output the result
to
stdout and can then pipe it to the lpr, but I would like to use filters in
the future.

Regards,
Matt

Previously, Matthew S. Blackburn wrote in qdn.public.qnx4:

Wow this is Great, only 1 response in a week and a half. The answer wasn’t
even from QNX support it was from another user.

Uhm, I don’t remember if the following was your original post, but if
it is I notice that it doesn’t seem to include any description of a problem,
much less a question to answer.

Sam

“Matthew S. Blackburn” <> blackburnms@rapistan.com> > wrote in message news:8p3cvl$fnh$> 1@inn.qnx.com> …
I have gotten remote printing working via the lpr command and all works
fine. But I am having difficulties getting filters to work at all. I
have
a couple of programs that take stdin as input and then output the result
to
stdout and can then pipe it to the lpr, but I would like to use filters in
the future.

Regards,
Matt


\


Sam Roberts (sam@cogent.ca), Cogent Real-Time Systems (www.cogent.ca)

How about the fact that I can’t get filters to work with remote printers. I
can’t find any reasonable documentation that explains how to get them to
work. 1 person has responded to say you can’t use filters with remote
printers and would have to chain queues together to get it to work, but
again no good examples on how to use it with ‘lpr’. The documentation I
have read says that using QNX printing services and TCP/IP printing services
together isn’t necessarily a good idea.

So my problem is as follows:

I can not get a print filter to activate when sending data to a TCP/IP
remote printer. So, “When dealing with remote printers what setup is
necessary to have the filter activate on all print jobs to the remote
printer”? Has to be done on the QNX box, as we are printing to an Epson
Ethernet Printer, also done within the “printcap” file as there is no QNX
printer services running.

Hope that is enough explanation.

“Sam Roberts” <sam@cogent.ca> wrote in message
news:Voyager.000915121255.27274B@sam.cogent.ca

Previously, Matthew S. Blackburn wrote in qdn.public.qnx4:
Wow this is Great, only 1 response in a week and a half. The answer
wasn’t
even from QNX support it was from another user.

Uhm, I don’t remember if the following was your original post, but if
it is I notice that it doesn’t seem to include any description of a
problem,
much less a question to answer.

Sam

“Matthew S. Blackburn” <> blackburnms@rapistan.com> > wrote in message
news:8p3cvl$fnh$> 1@inn.qnx.com> …
I have gotten remote printing working via the lpr command and all
works
fine. But I am having difficulties getting filters to work at all. I
have
a couple of programs that take stdin as input and then output the
result
to
stdout and can then pipe it to the lpr, but I would like to use
filters in
the future.

Regards,
Matt





\

Sam Roberts (> sam@cogent.ca> ), Cogent Real-Time Systems (> www.cogent.ca> )

QNX’s lpd package is probably a bit old where filter can only
be done for local printers. You can port lpd from a modern
linux distribution. I know redhat’s lpd can do filter for
both local and remote printers.



“Matthew S. Blackburn” wrote:

How about the fact that I can’t get filters to work with remote printers. I
can’t find any reasonable documentation that explains how to get them to
work. 1 person has responded to say you can’t use filters with remote
printers and would have to chain queues together to get it to work, but
again no good examples on how to use it with ‘lpr’. The documentation I
have read says that using QNX printing services and TCP/IP printing services
together isn’t necessarily a good idea.

So my problem is as follows:

I can not get a print filter to activate when sending data to a TCP/IP
remote printer. So, “When dealing with remote printers what setup is
necessary to have the filter activate on all print jobs to the remote
printer”? Has to be done on the QNX box, as we are printing to an Epson
Ethernet Printer, also done within the “printcap” file as there is no QNX
printer services running.

Hope that is enough explanation.

“Sam Roberts” <> sam@cogent.ca> > wrote in message
news:> Voyager.000915121255.27274B@sam.cogent.ca> …
Previously, Matthew S. Blackburn wrote in qdn.public.qnx4:
Wow this is Great, only 1 response in a week and a half. The answer
wasn’t
even from QNX support it was from another user.

Uhm, I don’t remember if the following was your original post, but if
it is I notice that it doesn’t seem to include any description of a
problem,
much less a question to answer.

Sam

“Matthew S. Blackburn” <> blackburnms@rapistan.com> > wrote in message
news:8p3cvl$fnh$> 1@inn.qnx.com> …
I have gotten remote printing working via the lpr command and all
works
fine. But I am having difficulties getting filters to work at all. I
have
a couple of programs that take stdin as input and then output the
result
to
stdout and can then pipe it to the lpr, but I would like to use
filters in
the future.

Regards,
Matt





\

Sam Roberts (> sam@cogent.ca> ), Cogent Real-Time Systems (> www.cogent.ca> )