Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news.mixmin.net!feed.xsnews.nl!border-2.ams.xsnews.nl!feeder.xennanews.com!nf37.xennanews.com!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.postscript Subject: Re: Why is my file access mode wrong Organization: Decebal Computing References: <87boecehrn.fsf@Compaq.site.inet> X-Homepage: http://www.decebal.nl/ Date: Sun, 02 Dec 2012 14:22:05 +0100 Message-ID: <877gp0eghu.fsf@Compaq.site.inet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:pYKEKXZJdw6XWXP9hBFQTcBJ/pQ= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@xennanews.com Lines: 35 NNTP-Posting-Host: 84.53.123.169 (84.53.123.169) NNTP-Posting-Date: Sun, 02 Dec 2012 14:42:19 +0100 Xref: csiph.com comp.lang.postscript:1123 Op zondag 2 dec 2012 13:54 CET schreef Cecil Westerhof: > I am still experimenting with postscript. I now have a script which > starts with: > /inputFile INPUT (r) file def > > I call it with: > ps2pdf -sINPUT=quotes.org quote.ps > > But get: > Error: /invalidfileaccess in --file-- > Operand stack: > inputFile (quotes.org) (r) > Execution stack: > %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 > %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 > %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 > %oparray_pop 1787 1 3 %oparray_pop --nostringval-- %errorexec_pop > .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push > --nostringval-- > Dictionary stack: > --dict:1175/3371(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)-- > Current allocation mode is local > Current file position is 26 > GPL Ghostscript 9.00: Unrecoverable error, exit code 1 > > What am I doing wrong? By the way: the script example 7.7 in ‘Thinking in Postscript’ also goes wrong. (What is to be expected, because it does the same.) -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof