From owner-freebsd-doc@FreeBSD.ORG Mon Apr 19 12:22:14 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6629A16A4CE for ; Mon, 19 Apr 2004 12:22:14 -0700 (PDT) Received: from abigail.blackend.org (blackend.org [212.11.35.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BC3643D49 for ; Mon, 19 Apr 2004 12:22:12 -0700 (PDT) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (localhost [127.0.0.1]) by abigail.blackend.org (8.12.9/8.12.3) with ESMTP id i3JJM9ui011118; Mon, 19 Apr 2004 21:22:09 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: (from marc@localhost) by abigail.blackend.org (8.12.9/8.12.3/Submit) id i3JJM9mx011117; Mon, 19 Apr 2004 21:22:09 +0200 (CEST) (envelope-from marc) Date: Mon, 19 Apr 2004 21:22:08 +0200 From: Marc Fonvieille To: Simon Barner Message-ID: <20040419192208.GC3860@abigail.blackend.org> References: <200404191820.i3JIKCis049926@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404191820.i3JIKCis049926@freefall.freebsd.org> User-Agent: Mutt/1.4.2.1i X-Useless-Header: blackend.org X-Operating-System: FreeBSD 4.8-STABLE cc: freebsd-doc@FreeBSD.org Subject: Re: docs/65766: [printing] Fdescfs needs to be mounted on FreeBSD 5.x X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 19:22:14 -0000 On Mon, Apr 19, 2004 at 11:20:12AM -0700, Simon Barner wrote: > > I just had another look at the original script: > > # > # It is PostScript; use Ghostscript to scan-convert and print it. > # > # Note that PostScript files are actually interpreted programs, > # and those programs are allowed to write to stdout, which will > # mess up the printed output. So, we redirect stdout to stderr > # and then make descriptor 3 go to stdout, and have Ghostscript > # write its output there. Exercise for the clever reader: > # capture the stderr output from Ghostscript and mail it back to > # the user originating the print job. > # > > Your script does not pay attention to the fact that postscript program > might mess up stdout, so I guess there is no way around the redirection > to fd 3. > The script I gave, especially the GS line, is used by a lot of people without any issue since years. The problem mentioned in the comments may occur but I *never* heard about it, the only problem I'm aware of are the GS bugs. > Is there anything bad about having fdecsfs mounted? > Well why adding a config operation when you can avoid it? And when you can use the same configuration on 3.X, 4.X and 5.X, I think it's a good thing. Marc