[Openmcl-devel] trouble invoking gnuplot on windows

Mirko Vukovic mirko.vukovic at gmail.com
Fri Jan 2 07:49:39 PST 2015


Hello,

I am trying to start a gnuplot process on windows 7 using the run-program
command. This is on version 1.10 (dev)

When I try to call the executable directly:
(progn
    (setf *gnuplot*
      (ccl:run-program "\"C:/Program Files (x86)/gnuplot/bin/wnuplot.exe\""
               '()
               :input :stream
               :output :stream
               :error :output
               :wait nil)
      *gnuplot-input* (ccl:external-process-input-stream *gnuplot*)
      *gnuplot-output* (ccl:external-process-output-stream *gnuplot*))
    (ccl:external-process-status *gnuplot*))

the process exits with status 2.

I tried using the "cmd" shell, with the \k switch.
(progn
    (setf *gnuplot*
      (ccl:run-program "cmd"
               '("/k"
                 "\"C:/Program Files (x86)/gnuplot/bin/gnuplot.exe\"")
               :input :stream
               :output :stream
               :error :output
               :wait nil)
      *gnuplot-input* (ccl:external-process-input-stream *gnuplot*)
      *gnuplot-output* (ccl:external-process-output-stream *gnuplot*))
    (ccl:external-process-status *gnuplot*))

But then the input and output streams are linked to the cmd process, not
the gnuplot one.

Any suggestions?

Thank you for reading, and best wishes in 2015,

Mirko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20150102/bfb6b5a3/attachment.htm>


More information about the Openmcl-devel mailing list