From owner-freebsd-questions@FreeBSD.ORG Thu Apr 3 20:23:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A1B837B401 for ; Thu, 3 Apr 2003 20:23:31 -0800 (PST) Received: from wonkity.com (wonkity.com [65.173.111.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B81A43FA3 for ; Thu, 3 Apr 2003 20:23:30 -0800 (PST) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.12.8/8.12.8) with ESMTP id h344NSL3083883; Thu, 3 Apr 2003 21:23:29 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.8/8.12.8/Submit) with ESMTP id h344NSkH083880; Thu, 3 Apr 2003 21:23:28 -0700 (MST) Date: Thu, 3 Apr 2003 21:23:28 -0700 (MST) From: Warren Block To: David Banning In-Reply-To: <20030403153320.A43931@skytrackercanada.com> Message-ID: <20030403211401.A83838@wonkity.com> References: <20030403153320.A43931@skytrackercanada.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@freebsd.org Subject: Re: customizing printcap to email file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 04:23:31 -0000 On Thu, 3 Apr 2003, David Banning wrote: > what I would like to do is have windows boxes print to a unix > printer filter which would convert the file into pdf format > and put the file into a directory where it could be emailed > out. > Anyone tried this? First off, I tried modifying the printcap if= > entry to take the file and save it as a file. That was a no go - I > just got an error. Now I am thinking about just stopping the printer, > which would spool the files in the spool directory. I still need > to initiate execution of a program to grab those files and convert > them. Setting it up as an input filter is the better way, I think. You just need to create a filter (script or program) and point the if= parameter to that. It's easier to debug filters before they're being called by lpd. Set up a script that takes STDIN, processes it into PDF, then mails it. That's your filter. After it's been tested, put it someplace known (filters often are placed in /usr/local/libexec) and give the whole path in the if= entry. -Warren Block * Rapid City, South Dakota USA