Skip to main content
Participant
February 18, 2011
Question

Postscript file with the RUN command

  • February 18, 2011
  • 1 reply
  • 6071 views

I have inherited some code that I'm trying to fix.   The postscript file contains a 'RUN' command.  When I try to open the file, I get the error unable to recognize the command.  Understandable since that command does not reside on my server.  It resides on a UNIX box which controls the printer.  However when I try to print the file to the printer nothing happens.  Neither is the command run and the results printed out nor the contents of .PS file is printed.  Please help.

This topic has been closed for replies.

1 reply

Mr__Horton
Inspiring
February 18, 2011

"run" is a device dependant PostScript operator (command), it requires that the interpreter support a files system and it must be preceded by a string that contains the interpreter path to the file. It opens the file and inserts its contents into the current job stream and acts on it as though it were just part of the original job stream.

If you could post the code that would help get you a more complete answer with a direction that you need to follow. The reason the PostScript job does not produce output on the unix box may have nothing to do with the run operator.

SDHAKSHAuthor
Participant
February 18, 2011

The PostScript files looks as follows. I do not know how the contents of the script FG530 nor have access to it. But the output is supposed to be a document that is to be printed. All of them start with FG and the 3 digit number following that indicates the document to be printed.

%!PS-Adobe-3.1

(FG530) run FG530

Shyamala Dhakshinamurthy

w: 678.441.3145 | shyamala.dhakshinamurthy@ceridian.com

Mr__Horton
Inspiring
February 18, 2011

On the surface it appears that after the run operator the FG530 would cause an undefined operator error, However the file (FG530) may have defined FG530 as a user defined operator. Can you turn on the printer error handler so that you will at least get an error page?

I used to use PostScript device file systems and there is a way to list the contents of a file as opposed to processing it, and that would solve the issue of whether the second occurence of FG530 is a user defined operator or not. I'll see if I have an example tomorrow.