[plt-scheme] subprocess and wait

From: Paulo J. Matos (pocmatos at gmail.com)
Date: Sun Feb 26 13:48:01 EST 2006

On 26/02/06, Eli Barzilay <eli at barzilay.org> wrote:
> On Feb 26, Paulo J. Matos wrote:
> > On 26/02/06, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> > >
> > > I forgot how the layers go.
> > >
> > > Maybe `process' from `(lib "process.ss")' will be easier to use,
> > > since it handles arbitrary ports.
> >
> > Ah, great! :D Done!
>
> A side-comment: running a subprocess that generates lots of
> outputs and collecting all that text in the scheme process might not
> be a good idea since you're making that other process compete with
> scheme for memory.  My guess is that switching things so you process
> the subprocess output in a thread is going to be just a little bit
> more complex.
>

I guess you're right, but what would then be your suggestion? Doing
the parsing of the output of the process during its execution?

> --
>           ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                   http://www.barzilay.org/                 Maze is Life!
>


--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group


Posted on the users mailing list.