[plt-scheme] getting console information using system

From: Rohan Nicholls (rohan.nicholls at informaat.nl)
Date: Thu Nov 21 12:18:30 EST 2002

Thanks for that I have looked at it, and stolen it for my own evil uses.:)


Mike T. Machenry wrote:
> I wrote a module called proc-helper which is a wrapper around process. It
> provides among other things a function run (string? . -> . string?)
> which runs a command and returns the output. You're welcome to use it.
> It's on my web page <http://www.ccs.neu.edu/home/dskippy/code/>
> The library is pretty minimal and ment to solve a particular problem I
> once had. So feel free to email me with bugs, additions, or changes you
> write.
> -mike
> On Mon, Nov 18, 2002 at 03:58:33PM +0100, Rohan Nicholls wrote:
>> For list-related administrative tasks:
>> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>Hey there all,
>>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?
>>(system "ls -a ${pwd}"), and what I am interested in using is the output 
>>that ls sends to console.
>>I have been sending the output to a temp file and then reading that in 
>>but is there a more elegant way to do this, such as capturing the output 

Posted on the users mailing list.