Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2004 21:22:08 +0200
From:      Marc Fonvieille <blackend@FreeBSD.org>
To:        Simon Barner <barner@in.tum.de>
Cc:        freebsd-doc@FreeBSD.org
Subject:   Re: docs/65766: [printing] Fdescfs needs to be mounted on FreeBSD 5.x
Message-ID:  <20040419192208.GC3860@abigail.blackend.org>
In-Reply-To: <200404191820.i3JIKCis049926@freefall.freebsd.org>
References:  <200404191820.i3JIKCis049926@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040419192208.GC3860>