*BSD News Article 47792


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!gatech!news.sprintlink.net!EU.net!Germany.EU.net!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!comma.rhein.de!serpens!not-for-mail
From: mlelstv@serpens.rhein.de (Michael van Elst)
Newsgroups: comp.unix.bsd.misc
Subject: Re: Printcap filters question
Date: 22 Jul 1995 15:49:59 +0200
Organization: dis-
Lines: 24
Message-ID: <3uqvm7$od3@serpens.rhein.de>
References: <3u0hjg$j0g@jeeves.niehs.nih.gov> <id.CUJL1.3N2@nmti.com> <3uljru$dpo@msunews.cl.msu.edu>
NNTP-Posting-Host: serpens.rhein.de

behrooz@egr.msu.edu (uid no access) writes:

>In article <id.CUJL1.3N2@nmti.com> peter@nmti.com (Peter da Silva) writes:
>>What I do in this case is set up a local printer to /dev/null, with a
>>filter program that feeds the file to the remote printer after whatever
>>massaging is necessary.

>      But aren't filters ignored when you have a :rm and :rp?

With BSD this is true.

BTW, using /dev/null has problems as the printer daemon locks the
output stream. And having /dev/null locked isn't something you want :)

I first used clones of /dev/null (created with mknod). But since you
do not write anything to the stream anyway I now use a file in the
spool area.

Regards,
-- 
                                Michael van Elst

Internet: mlelstv@serpens.rhein.de
                                "A potential Snark may lurk in every tree."