🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #7265

Re: string concatenation

#7265
From: Brad Clements
Date: Fri, 01 Jul 1988 16:59
69 lines
2754 bytes
From article <2564@ihuxy.ATT.COM>, by nowlin@ihuxy.ATT.COM (Jerry Nowlin):
> 
> My big problem is that I have to write a program, send it out over the
> network to a laser printer and then walk down to the printer to see if I
> got some printout or not.  If I screwed anything up I get no output at
> all.  It makes debugging a real pleasure.  Has anyone found some more

Here are some suggestions that work for me.

1. Get ehandler.ps from the adobe server and make sure that it is 
   downloaded and resident in your laser printer. This way, if you
   do get an error, at least you will get a printout of the cause
   of the error, and more importantly, a hardcopy dump of the stack
   contents.

2. If you have a MSDOS machine connected directly to your laser printer,
   you can use a terminal program (such as kermit) that will allow you
   to send the file (ASCII upload) and see what the printer responds
   with. Also, you can place the printer in executive mode and try out
   various PS commands and get immediate responses on your screen.

   You can also do this with a unix connection, use  CU or TIP to
   connect to the ttyport that the laser printer is connected to
   and place the printer in executive mode. Executive mode doesn't
   kill your job when you create an error, prints out the cause of the
   error (on your terminal) and you can see the stack using
   pstack or == etc.

To get the ehandler, send the following message to
adobe!ps-file-server@decwrl.dec.com

send programs ehandler.ps


Be sure to change the password that is stored in the ehandler to match
the password for your printer (0 is the default) and send the file to 
the printer.

Hope this helps.

Brad

! following is a quick script of a simple  executive session with
a PostScript printer connected to a unix system via a terminal server.


Script started on Fri Jul  1 13:02:21 1988
% telnet myprinter.clarkson.edu
Trying...
Connected to myprinter.clarkson.edu.
Escape character is '^]'.
%%[ status: idle ]%%				% I pressed ^T here
					% I typed    executive
PostScript(r) Version 44.0
Copyright (c) 1986 Adobe Systems Incorporated.
PS>
PS>5 4 add
PS>pstack
9 
PS>[ 8 9 7 6 5 4]
PS>pstack
[8 9 7 6 5 4 ]
9 
PS>quit

telnet> quit
Connection closed.
% ^D
script done on Fri Jul  1 13:03:08 1988
Technical Details
Message-ID: <1133@sun.soe.clarkson.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!uw-beaver!cornell!batcomputer!sun.soe.clarkson.edu!bkc
References: <2564@ihuxy.ATT.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!uw-beaver!cornell!batcomputer!sun.soe.clarkson.edu!bkc
From: bkc@sun.soe.clarkson.edu (Brad Clements)
Newsgroups: comp.lang.postscript
Subject: Re: string concatenation
Message-ID: <1133@sun.soe.clarkson.edu>
Date: 1 Jul 88 16:59:32 GMT
References: <2564@ihuxy.ATT.COM>
Organization: Clarkson University, Potsdam, NY
Lines: 69