Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Postscript file with the RUN command

New Here ,
Feb 17, 2011 Feb 17, 2011

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.

TOPICS
Programming
5.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 17, 2011 Feb 17, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 17, 2011 Feb 17, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 17, 2011 Feb 17, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 21, 2011 Feb 21, 2011

The FG530 is a script relating to PlanetPress software that is installed on this particular printer. The script apparently gathers some files and prints them out. Any further insight into this will be really helpful.

Shyamala Dhakshinamurthy

w: 678.441.3145 | shyamala.dhakshinamurthy@ceridian.com

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 22, 2011 Feb 22, 2011
LATEST

I have included an old PostScript program I wrote from the early 1990's that will print a directory of the interpreter's file system, which is a good place to start.

If there are no files matching the string FG530 then you are out of luck, unless you can find it and download it to the PostScript file system again.

I added the commented lines about file paths and the included image is of the first page of the generated output:

%!PS-Adobe
%%Creator: Marvin R. Horton, Macore Company, Inc.
%%BeginProc:
/Buff 100 string def /Wipe 100 string def
/Rebuff {Buff 0 Wipe putinterval} def
/startpage {18 756 moveto gsave (P O S T S C R I P T   F I L E   S Y S T E M   D I R E C T O R Y ) show 400 0 rlineto .5 setlinewidth stroke
  grestore 0 -6 rmoveto}def
/Dir {0 -6 rmoveto gsave Buff show Rebuff grestore
currentpoint 6 sub 30 lt{450 eq{showpage startpage}{144 720 rmoveto}ifelse}if }def
%%EndProc:

/Courier findfont 6 scalefont setfont
startpage
(*) {Dir} Buff filenameforall
%%How to get file list from a subdirectory of...: (fonts/*) {Dir} Buff filenameforall
%%How to get file list within specific naming "FG...": (FG???) {Dir} Buff filenameforall
showpage

PS_ROOT_DIR.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines