Subject: Re: Printing not working with lpd, but fine to device
To: None <netbsd-help@netbsd.org>
From: None <dchapman@canwest.victoria.bc.ca>
List: netbsd-help
Date: 01/08/2001 20:25:30
* Frederick Bruckman <fb@enteract.com> [010106 07:36]:
> On Fri, 5 Jan 2001 dchapman@canwest.victoria.bc.ca wrote:
> 
> > /usr/pkg/bin/gs -dSAFER -dBATCH -dQUIET -dNOPAUSE -q -sDEVICE=stp \
> > -sMode=escp2-800 -sOutputFile=- -sPAPERSIZE=a4 - && exit 0
>                                 ^                ^
>                                 ^                ^
> Does that command line work for you when you enter it manually? I seem
> to recall having to usr /dev/stdout and /dev/stdin.
> 
I try this command line:

gs -sModel=escp2-800 -sDEVICE=stp xxx.ps

where xxx.ps has been printed to file from Netscape.

Which gives:

Aladdin Ghostscript 6.01 (2000-03-17)
Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusRomNo9L-Regu font from /usr/pkg/share/ghostscript/fonts/n021003l.pfb... 4896908 3523301 1556964 261536 0 done.
Loading NimbusSanL-Regu font from /usr/pkg/share/ghostscript/fonts/n019003l.pfb... 5215012 3809947 1577060 269108 0 done.
Loading NimbusRomNo9L-Medi font from /usr/pkg/share/ghostscript/fonts/n021004l.pfb... 5492924 3866659 1577060 260692 0 done.
Loading NimbusRomNo9L-ReguItal font from /usr/pkg/share/ghostscript/fonts/n021023l.pfb... 5553212 3921713 1577060 262995 0 done.
Loading NimbusRomNo9L-MediItal font from /usr/pkg/share/ghostscript/fonts/n021024l.pfb... 5613500 3976084 1577060 265314 0 done.
Loading NimbusMonL-Regu font from /usr/pkg/share/ghostscript/fonts/n022003l.pfb... 5653692 4027647 1577060 267686 0 done.
Loading NimbusMonL-Bold font from /usr/pkg/share/ghostscript/fonts/n022004l.pfb... 5713980 4087692 1597156 273314 0 done.
Loading NimbusMonL-ReguObli font from /usr/pkg/share/ghostscript/fonts/n022023l.pfb... 5774268 4082184 1597156 269757 0 done.
Loading NimbusMonL-BoldObli font from /usr/pkg/share/ghostscript/fonts/n022024l.pfb... 5834556 4143822 1597156 272317 0 done.
Error: /invalidfileaccess in --.outputpage--
Operand stack:
   1   true
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   0   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:938/983(ro)(G)--   --dict:0/20(G)--   --dict:108/200(L)--
Current allocation mode is local
Current file position is 633960
Aladdin Ghostscript 6.01: Unrecoverable error, exit code 1

Could this be the source of the printer spitting out rubbish?

  Thanks
   Dave Chapman

-- 
Dave Chapman                       |    "tar is not a plaything"
dchapman@canwest.victoria.bc.ca    |    bsimpson@dt.springfield.edu