Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Feb 2004 12:24:14 +0100
From:      Dirk.Roehrdanz@t-online.de (Dirk Roehrdanz)
To:        freebsd-current@freebsd.org
Subject:   Re: PS printing to non PS printer on 5.2
Message-ID:  <20040214122414.A583@aldebaran.dx>
In-Reply-To: <402D577B.8010402@tellme3times.com>; from chris@tellme3times.com on Fri, Feb 13, 2004 at 06:02:19PM -0500
References:  <402D577B.8010402@tellme3times.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Chris,

On  0, Chris <chris@tellme3times.com> wrote:
> Hell all,
> 
> I'm having trouble getting gs to print with the instructions in the 
> handbook. While I can print simple text to the printer I am unable to 
> print postscript.
> 
> The same script works fine on 4.x I have now tried this on 5.1 and 5.2.1 
> and both result in the same errors;
> 
>        AFPL Ghostscript 8.11: **** Could not open the file /dev/fd/3 .
>        Error: /invalidfileaccess in --.outputpage--
> 
> 
> now on 5.x we do not have /dev/fd/3 as required by the hand book;
> 
>      /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 \
>         -sOutputFile=/dev/fd/3 - && exit 0

to access /dev/fd/3 you have to mount fdescfs before:
 mount_fdescfs fdescfs /dev/fd

You can put an adequate line in /etc/fstab(after the devfs line):
fdescfs	/dev/fd	fdescfs	rw	0	0

Dirk



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