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 Message-ID: <Mutt.19970131110620.j@uriah.heep.sax.de> In-Reply-To: <199701310127.TAA21295@nexgen.ampr.org>; from dkelly@hiwaay.net on Jan 30, 1997 19:25:44 -0600 References: <kmitch@weenix.guru.org> <199701310127.TAA21295@nexgen.ampr.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970131110620.j>