Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 17:00:41 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Victor Sudakov <sudakov@sibptus.tomsk.ru>, questions@FreeBSD.ORG
Subject:   Re: lpd(8): remote printing and input/output filters
Message-ID:  <p05101002b7a483898568@[128.113.24.47]>
In-Reply-To: <20010819012134.A43155@sibptus.tomsk.ru>
References:  <20010819012134.A43155@sibptus.tomsk.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
At 1:21 AM +0800 8/19/01, Victor Sudakov wrote:
>Colleagues.
>
>Can you tell for sure if the "if" and "of" filters should work
>for a remote printer? For example, in such a configuration.
>
>lp:remote printserver:\
>         :rm=remote.host.com:\
>         :if=/usr/libexec/some_filter.sh:\
>         :rp=lpt1_TEXT:\
>         :sd=/var/spool/output/lpd1:\
>         :lf=/var/log/lpd-errs:\
>         :lp=:\
>         :mx#0:
>
>Thank you in advance.

In a general sense, 'if' and 'of' should work on remote printers.
One has to be a bit careful though, as they aren't doing quite
the same thing as 'if' or 'of' do on a local printer.  They are
not modifying data "as it prints", they are filtering a file
which is in the process of being transferred to some other host.

In many cases the effect is the same, but in some cases it is not,
and you will not get the behavior you expect.

There's also the finicky-ness of the format of the printcap file,
which can cause problems (for any kind of print queue) if you don't
type in the information just right.

What problems are you seeing?  Is your remote host the actual
printer, or is it another unix box?  Do you get an error, or does
everything "seem" to work, except that the jobs just disappear
without printing?  What does your filter do?

It is possible that you might see some trouble by including an
explicit setting for 'lp=' on a remote printer.  I don't have
the time to look at the code right now, so maybe it works fine.
However, you certainly don't NEED to set 'lp=', so you might
want to delete that line and see if it works any better.

If you can't get it to work, send me an email with more details
(such as your EXACT printcap file), and I'll try to help you out.

-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05101002b7a483898568>