This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: running programs.


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]