[plt-scheme] reading the output of a shell command execution

From: Pedro Kroger (kroegerlistas at pedrokroeger.net)
Date: Tue Feb 8 19:16:59 EST 2005

Eli Barzilay <eli at barzilay.org> writes:

> 2. Use `system' which executes the command synchronously, but you'll
>    need to use parameterize:
>      (parameterize ([current-output-port port])
>        (system "darcs whatsnew"))

thanks a lot! system and parameterize worked just the way I wanted. (I
tried "system" before, but of course, I couldn't read the output)



Posted on the users mailing list.