clisp+cygwin: ext:make-pipe-input/output/io-stream
- From: Mirko.Vukovic@xxxxxxxxx
- Date: Sun, 17 Aug 2008 11:28:45 -0700 (PDT)
Hello,
I am trying to drive gnuplot from clisp on windows+cygwin (yes I know,
I should just fork over the $500 for Alegro. But, a kid is going to
college). But, I get an error that I cannot figure out where it comes
from.
I define the output stream as
(defvar *gplot* (ext:make-pipe-io-stream "/bin/gnuplot"))
(I have tried both the unix and windows style paths with same
results. I am not trying the bi-directional declaration, because,
frankly, I don't know what to do with the resulting stream - I am
supposed to get three values, but get only one).
After opening up the stream, the following command sequence
(format *gplot* "plot sin(x)")
(finish-output *gplot*)
results in this error:
UNIX error 32 (EPIPE): Broken pipe, child process terminated or socket
closed
[Condition of type SYSTEM::SIMPLE-OS-ERROR]
I have also tried pointing to a nonexistent executable, with the same
result. So it seems that clisp will try to communicate only when I do
the (finish-output *gplot*) command.
I can understand the nomenclature (somewhat), but my understanding of
the internals of unix, windows & cygwin is lacking. I am not sure if
what I am trying to do is even possible with clisp on cygwin (I have
the latest clisp & cygwin).
Thanks,
Mirko
.
- Follow-Ups:
- Re: clisp+cygwin: ext:make-pipe-input/output/io-stream
- From: Pascal J. Bourguignon
- Re: clisp+cygwin: ext:make-pipe-input/output/io-stream
- Prev by Date: Re: included struct slots in defstruct
- Next by Date: Re: Job Market for Lisp and Haskell programmers, serious question.
- Previous by thread: adidas adicolor shoes PayPal
- Next by thread: Re: clisp+cygwin: ext:make-pipe-input/output/io-stream
- Index(es):
Relevant Pages
|
|