From owner-freebsd-questions Wed Apr 2 16:32:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA10257 for questions-outgoing; Wed, 2 Apr 1997 16:32:43 -0800 (PST) Received: from xmission.xmission.com (softweyr@xmission.xmission.com [198.60.22.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA10252 for ; Wed, 2 Apr 1997 16:32:39 -0800 (PST) Received: (from softweyr@localhost) by xmission.xmission.com (8.8.5/8.7.5) id RAA02662; Wed, 2 Apr 1997 17:32:06 -0700 (MST) From: Wes Peters - Softweyr LLC Message-Id: <199704030032.RAA02662@xmission.xmission.com> Subject: Re: printing with two levels of if filters.. To: brandon@cold.org (Brandon Gillespie) Date: Wed, 2 Apr 1997 17:32:04 -0700 (MST) Cc: questions@freebsd.org In-Reply-To: from "Brandon Gillespie" at Apr 2, 97 03:50:49 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I have print spooling setup through Columbia Appletalk. This works great, > EXCEPT for i can only print postscript files. I would like to setup a > text2ps filter, except for the way lpd spooled cap works the if is the > command that spools it to the printer... any suggestions? I thought of > setting up two entries for the printer, one of which is the CAP spooler > and one which is a pre-filter basically, which uses rm to forward to the > other printer (on the same box) but this does not work, as (I'm guessing) > any input filters are ignored when you are just forwarding to a remote > host... Create a printcap entry for the REAL printer, called "cap," and for the pseudo-printer, called "lp." The lp if script mangles the input with text2ps and pipes it to lpr -Pcap, which gets it to the actual printer. You were close! ;^) -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.xmission.com/~softweyr softweyr@xmission.com