From owner-freebsd-questions@FreeBSD.ORG Thu Jan 20 04:53:11 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B1C4106564A for ; Thu, 20 Jan 2011 04:53:11 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (host-120.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 71DB38FC08 for ; Thu, 20 Jan 2011 04:53:11 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id p0K503oX093451; Wed, 19 Jan 2011 23:00:03 -0600 (CST) Date: Wed, 19 Jan 2011 23:00:03 -0600 (CST) From: Robert Bonomi Message-Id: <201101200500.p0K503oX093451@mail.r-bonomi.com> To: questions@freebsd.org, sfourman@gmail.com In-Reply-To: Cc: Subject: Re: FreeBSD cups printing server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 04:53:11 -0000 > From owner-freebsd-questions@freebsd.org Wed Jan 19 21:14:59 2011 > Date: Wed, 19 Jan 2011 20:39:01 -0600 > From: "Sam Fourman Jr." > To: FreeBSD Questions > Cc: > Subject: FreeBSD cups printing server > > Hello list, > > I have a freshly installed FreeBSD 8.2 print server using the latest cups > from ports. > > I have a Brother 9440CN printer and a Virtual pdf printer installed with > cups-pdf > > both work great... > > my problem is I want to create a pdf for everything I send to the brother > printer (for archival purposes) > > can I add multiple printers to a single queue? or is there a script > somewhere, that I could copy the cups generated postscript to the > cups-pdf printer? At least a couple of options: (the *UGLY* one) 1) define a named pipe 2) tell CUPS that that pipe is the printer device 3) from the system start-up script, launch a script that does the following in a loop: uses tee(1) to read from the named pipe, and copy to a unique archive file pipes stdout from tee(1) to the actual printer device