[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ghostscript command line
From: |
Martin.Hepperle |
Subject: |
Ghostscript command line |
Date: |
Mon, 13 Aug 2012 07:01:16 -0700 (PDT) |
Dear all,
while trying Octave on my new WIndows 7 installation I ran across a problem
with "unusual" path names.
My installation path contained special characters like "(", which broke the
"system()" call to execute ghostcript (the same happend with fltk as
backend, but I did not look into this as I prefer gnuplot for the moment).
I have fixed this in my installation by enclosing the gnuplot binary file
name in double quotes.
This occurs in the script file ".../plot/private/__ghostscript__.m" as
follows:
-----------------------------------------
if (isempty (opts.binary))
error ("print:no_ghostscript", "__ghostscript__.m: ghostscript is
required.");
elseif (isempty (opts.output))
cmd = sprintf ("\"%s\" %s", opts.binary, gs_opts); % \"
added MH
else
cmd = sprintf ("\"%s\" %s -sOutputFile=%s", opts.binary, gs_opts,
opts.output); % \" added MH
endif
-----------------------------------------
While this works under Windows, I am not sure whether this will also work
under Linux.
Maybe one of the maintainers of the plot package can have a look at this.
Best Regards,
Martin
--
View this message in context:
http://octave.1599824.n4.nabble.com/Ghostscript-command-line-tp4642679.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
- Ghostscript command line,
Martin.Hepperle <=