Subject: Making a2ps and ghostscript work together
To: None <netbsd-help@NetBSD.ORG>
From: David Hobley <davidh@wr.com.au>
List: netbsd-help
Date: 04/05/1998 22:50:05
Hello,

I am trying to setup my printer up on my PC. I have a deskjet 600. I have
downloaded and installed both a2ps and ghostscript binary packages to get
this to work.

I can run a2ps okay to convert from text to postscript. When I pass the
output from this into ghostscript (using the following command):

% cat file.ps | gs -q -dNODISPLAY -dNOPAUSE -sDEVICE=deskjet -sOutputFile=-

I get the following error (lots more in fact, but this is the first couple
of lines.

GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS>GS
>GS>GS>GS>GS>GS>Error: /syntaxerror in -file-
Operand stack:
   --dict:772/809--   true
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   0   3   %oparray_pop   --nostringval--
   %loop_continue   2   4   %oparray_pop   --nostringval--   --nostringval--   f
alse   1   %stopped_push   .runexec2   --nostringval--   --nostringval--   --nos
tringval--   2   %stopped_push   --nostringval--   --nostringval--   5   4   %op
array_pop
Dictionary stack:
   --dict:772/809--   --dict:0/20--   --dict:44/200--   --dict:0/200--
Current allocation mode is local
Last OS error: 2
<snip>


I don't some (more clueful person than me) one would have any idea what 
stupid mistake I am making ?

Thanks for your time.
-- 
Cheers,
david		-- http://www.angelfire.com/wa/hobley