LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gs command (https://www.linuxquestions.org/questions/linux-newbie-8/gs-command-4175420108/)

divyashree 08-03-2012 12:23 AM

gs command
 
I use the gs command in script in IRIX like this:

Code:

/usr/bin/gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite "-sOutputFile=409039000273.pdf" -c .setpdfwrite 409039000273.pdf
But while runnng the script it gives the error:

Code:

/usr/bin/gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=409039000273.pdf -c .setpdfwrite -f 409039000273.pdf
Error: /rangecheck in --.peekstring--
Operand stack:
  --nostringval--  --nostringval--  (    )
Execution stack:
  %interp_exit  .runexec2  --nostringval--  --nostringval--  --nostringval--  2  %stopped_push  --nostringval--  --nostringval--  --nostringval--  false  1  %stopped_push  1  3  %oparray_pop  --nostringval--
Dictionary stack:
  --dict:1118/1686(ro)(G)--  --dict:0/20(G)--  --dict:70/200(L)--
Current allocation mode is local
Artifex Ghostscript 8.50: Unrecoverable error, exit code 1


divyashree 08-03-2012 10:39 PM

The same is happening in Linux also with following error:

Code:

Error:
+ /usr/bin/gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=409039000273.pdf -c .setpdfwrite -f 409039000273.pdf
 /typecheck in --.unread--
Operand stack:
  true  --nostringval--  true  0
Execution stack:
  %interp_exit  .runexec2  --nostringval--  --nostringval--  --nostringval--  2  %stopped_push  --nostringval--  --nostringval--  --nostringval--  false  1  %stopped_push  1  3  %oparray_pop  --nostringval--  1  1  3  --nostringval--  %for_pos_int_continue  --nostringval--  --nostringval--  --nostringval--
Dictionary stack:
  --dict:1069/1417(ro)(G)--  --dict:0/20(G)--  --dict:68/200(L)--
Current allocation mode is local
ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1



All times are GMT -5. The time now is 01:19 AM.