Re: SBCL's (run-program ... :output out) is not working on Windows
- From: Richard M Kreuter <kreuter@xxxxxxxxx>
- Date: Sat, 30 Aug 2008 10:46:35 GMT
Kneo Fang <Kneo.Fang@xxxxxxxxx> writes:
Hi everyone,
I'm using SBCL on Windows. The following code returns "hi" on Linux,
but an empty string on Windows:
(with-output-to-string (out)
(run-program "echo" '("hi") :input t :output out :search t))
What should I do to make it work on Windows?
This is the sort of question that's best posed on the sbcl-help
mailing list, but the answer is that the modes of RUN-PROGRAM that
involve using a Lisp stream as input, output, or error for the
external program don't yet work on Windows. Until that changes, as a
workaround, for most uses, you might have the external program write
its output to a file, and then read that file in from Lisp.
--
RmK
.
- Prev by Date: Re: What do you LISPers think of Haskell?
- Next by Date: Re: What do you LISPers think of Haskell?
- Previous by thread: Re: SBCL's (run-program ... :output out) is not working on Windows
- Next by thread: Re: tracing all functions in a package
- Index(es):
Relevant Pages
|