This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: running programs.
- To: clark dot mcgrew at sunysb dot edu
- Subject: Re: running programs.
- From: Friedrich Dominicus <Friedrich dot Dominicus at inka dot de>
- Date: Thu, 11 Nov 1999 08:22:52 +0100
- CC: guile at sourceware dot cygnus dot com
- Organization: Friedrich Dominicus
- References: <m11lgzN-000UuAC@boxer.physics.sunysb.edu>
- Reply-To: Friedrich dot Dominicus at inka dot de
Clark McGrew wrote:
>
> Hi Everybody,
>
> This is sort of a question/proposal/advertisement.
>
> I like using guile to write scripts whenever possible, since I find it
> a lot easier to use than some of the other options. Unfortunately,
> I've run into the same snag several times; I don't know of any easy
> way to feed data to an external program and then collect it's output.
> Is there a simple way to do what I'd like?
>
> I think this can be done with scsh, but it's a big package. I also
> don't particularly like scsh since it seems like a bad compromise
> between shell and scheme.
>
What is your problem with that. I think it's Scheme with extenstions to
facilate Shell-programming so what is the problem in scsh
one can write
(let ((ls-output (run/strings (ls)))
and work then with ls-output as Scheme-String, I found this very nice
and well done so why not use what's there? And improve on it?
Regards
Friedrich