[Ecls-list] RUN-PROCESS with input from string.

Michael Wood esiotrot at gmail.com
Sun Feb 27 11:39:29 UTC 2011


2011/2/27 Rupert Swarbrick <rswarbrick at gmail.com>:
> Hi there,
>
> I'm busy trying to port some website code to work with ECL as well as
> SBCL. To do so, I'm trying to write a function that will create a
> process with a given string as standard input. On sbcl, I'd do the
> following:
>
>
>
> and that works fine: the program runs, reading from the string and then
> exits. After thinking for a bit, I came up with the following code to
> try to get things working with ecl:
>
>
>
> where /home/rupert/doit.sh contains the following:
>
>
>
> This works, in that tmp.txt contains blargl after the code runs, but the
> process never finishes:
>
>
> rupert at hake:~ ps aux | grep doit
> rupert   24764  0.0  0.0      0     0 ?        Z    01:12   0:00 [doit.sh] <defunct>
> rupert   24771  0.0  0.0   5048   724 pts/0    S+   01:12   0:00 grep doit
>
>
> How should I make sure that the process finishes too? (I don't mind if
> I have to wait for it: this doesn't need to run in parallel)

Just a guess, but try changing ":wait nil" to ":wait t"?

-- 
Michael Wood <esiotrot at gmail.com>




More information about the ecl-devel mailing list