From owner-freebsd-questions Sat Aug 18 14:14:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 2FAF637B409 for ; Sat, 18 Aug 2001 14:14:16 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id f7ILEC452028; Sat, 18 Aug 2001 17:14:12 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu (Unverified) Message-Id: In-Reply-To: <20010819012134.A43155@sibptus.tomsk.ru> References: <20010819012134.A43155@sibptus.tomsk.ru> Date: Sat, 18 Aug 2001 17:00:41 -0400 To: Victor Sudakov , questions@FreeBSD.ORG From: Garance A Drosihn Subject: Re: lpd(8): remote printing and input/output filters Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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