[Ecls-list] run-program with :error :stream?
Pascal J. Bourguignon
pjb at informatimago.com
Tue Jan 20 01:07:02 UTC 2015
> On 20 Jan 2015, at 01:48, Jared C. Davis <jared.c.davis at gmail.com> wrote:
>
> Hi,
>
> I'm new to ECL. I have some questions about the ext:run-program.
>
> According to the documentation at:
>
> http://ecls.sourceforge.net/new-manual/rn01re63.html <http://ecls.sourceforge.net/new-manual/rn01re63.html>
>
> It sounds as though run-program can take :error :stream. However, when I try
> to run:
>
> (ext:run-program "echo" (list "hello")
> :input :stream
> :output :stream
> :error :stream)
>
> I seem to hit an error:
>
> Debugger received error of type: SIMPLE-ERROR
> Invalid :ERROR argument to EXT:RUN-PROGRAM:
> :STREAM
>
> Is there some other command I should use besides ext:run-program that might
> allow me to get all three stdin/out/err streams?
>
> I'm using x86-64 Linux with the ECL 13.5.1 release from the sourceforge project
> page. Perhaps I should use a newer version of ECL from Git?
If you type M-. on ext:run-program, you will see in the source of the function, and that the error parameter can be T or :OUTPUT, not :STREAM.
(I've got ecl from git, commit d1725e193059e98567d3c7dababf4643a9a347b8).
--
__Pascal J. Bourguignon__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20150120/7bfd3106/attachment.html>
More information about the ecl-devel
mailing list