From owner-freebsd-hackers Fri Jan 31 02:24:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA16205 for hackers-outgoing; Fri, 31 Jan 1997 02:24:22 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id CAA16199 for ; Fri, 31 Jan 1997 02:24:15 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id LAA16798 for hackers@freebsd.org; Fri, 31 Jan 1997 11:24:08 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id LAA02512; Fri, 31 Jan 1997 11:06:20 +0100 (MET) Message-ID: Date: Fri, 31 Jan 1997 11:06:20 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@freebsd.org Subject: Re: lpd - remote printing with an output filter References: <199701310127.TAA21295@nexgen.ampr.org> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199701310127.TAA21295@nexgen.ampr.org>; from dkelly@hiwaay.net on Jan 30, 1997 19:25:44 -0600 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As dkelly@hiwaay.net wrote: > I was looking thru the handbook the other night while setting up my > printer. Saw a comment that one way to implement a filter on a remote > printer was to make a "virtual" local printer with an "if" or "of" filter > of your choice which ultimately pipes the output right back into "lpr > -Preal_printer". Doesn't seem so hard? I must be missing something. It's not too hard. However, you lose the ability to kill the job once it went into the final queue, since it's owned by `daemon' then. We use this method extensively at work (mainly for filtering PostScript), and i wrote a setuid perl wrapper that re-owns the job if it originated from a local user. (If the job has been remote, all bets are off anyway, and it will still be owned by daemon.) I can contribute that perl wrapper if people are interested. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)