[plt-scheme] getting console information using system

From: Jefferson Provost (jp at cs.utexas.edu)
Date: Tue Nov 19 12:00:56 EST 2002

Paul Steckler wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>I have a question about the (system ...) function.
>>I am interested in getting the information that is returned from the
>>system call, is there a way to do this?
> Yes, wrap the call in a parameterize where you set the
> current-output-port and (maybe) current-error-port.

You may want to try using (subprocess ...) or (process/ports ...) 
instead.  They allow direct access to the subprocess stdin/out/err. 
They're asynchronous, though, so that may not be what you want.

(not sure why both of these functions exist, btw...)


Posted on the users mailing list.