<div dir="ltr">I fixed the problem on my end. I am posting the fix if someone comes upon this email looking for the solution to a similar problem. See below<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 2, 2015 at 10:49 AM, Mirko Vukovic <span dir="ltr"><<a href="mailto:mirko.vukovic@gmail.com" target="_blank">mirko.vukovic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br>I am trying to start a gnuplot process on windows 7 using the run-program command. This is on version 1.10 (dev)<br><br></div>When I try to call the executable directly:<br><span style="font-family:monospace,monospace">(progn<br> (setf *gnuplot*<br> (ccl:run-program "\"C:/Program Files (x86)/gnuplot/bin/wnuplot.exe\"" <br> '()<br> :input :stream<br> :output :stream<br> :error :output<br> :wait nil)<br> *gnuplot-input* (ccl:external-process-input-stream *gnuplot*)<br> *gnuplot-output* (ccl:external-process-output-stream *gnuplot*))<br> (ccl:external-process-status *gnuplot*))</span><br><br></div>the process exits with status 2.<br><br>I tried using the "cmd" shell, with the \k switch.<br><span style="font-family:monospace,monospace">(progn<br> (setf *gnuplot*<br> (ccl:run-program "cmd" <br> '("/k"<br> "\"C:/Program Files (x86)/gnuplot/bin/gnuplot.exe\"")<br> :input :stream<br> :output :stream<br> :error :output<br> :wait nil)<br> *gnuplot-input* (ccl:external-process-input-stream *gnuplot*)<br> *gnuplot-output* (ccl:external-process-output-stream *gnuplot*))<br> (ccl:external-process-status *gnuplot*))</span><br><br>But then the input and output streams are linked to the cmd process, not the gnuplot one.<br><div><div><br></div><div>Any suggestions?<br><br>Thank you for reading, and best wishes in 2015,<br><br>Mirko<br></div></div></div>
</blockquote></div><br></div><div class="gmail_extra">Posting this for future reference:<br><br></div><div class="gmail_extra">I downloaded gnuplot version 5 and placed its BIN directory into Windows' path. Then the following will successfully start the process<br><br>(CCL:RUN-PROGRAM "gnuplot.exe" NIL :INPUT :STREAM :OUTPUT T :ERROR :OUTPUT :WAIT NIL)<br><br></div><div class="gmail_extra">I actually use<br>(setf *gnuplot*<br> (ccl:run-program (namestring executable)<br> () <br> :input :stream<br> ;; send output to standard-output, which<br> ;; goes to *inferior-lisp* buffer<br> :output t <br> :error :output<br> :wait nil)<br> *gnuplot-input* (ccl:external-process-input-stream *gnuplot*)<br> *gnuplot-output* (ccl:external-process-output-stream *gnuplot*))<br><br></div><div class="gmail_extra">where *gnuplot* holds "gnuplot.exe". I can then pass gnuplot commands to the *gnuplot-input* stream.<br></div><div class="gmail_extra">Gnuplot's textual output (as from "show version") goes to SLIME's inferior lisp buffer.<br><br></div><div class="gmail_extra">Mirko<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Mirko<br></div><div class="gmail_extra"><br></div></div>