[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Adding (system->string) somewhere
From: |
Ivan Raikov |
Subject: |
Re: [Chicken-users] Adding (system->string) somewhere |
Date: |
Fri, 11 Jan 2008 09:51:58 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Hello,
If I understand this description correctly, the runcmd egg has this
functionality. Take a look at its documentation and see if it would
work for you.
-Ivan
Ozzi <address@hidden> writes:
> Could we get something akin to (system->string) added to Chicken
> somewhere? Summary from:
>
> http://practical-scheme.net/wiliki/schemexref.cgi?system-%3estring
>
> "Appends all strings, then calls the result string as a command, and
> collects the output from the command into a string to be returned. See
> system."
>
> I am using the following code, which just takes a single string:
>
> (define (system->string cmd)
> (string-chomp (with-input-from-pipe cmd read-all)))
>
> Either the library or posix units look like good candidates to me.
>
- [Chicken-users] Adding (system->string) somewhere, Ozzi, 2008/01/10
- Re: [Chicken-users] Adding (system->string) somewhere,
Ivan Raikov <=
- Re: [Chicken-users] Adding (system->string) somewhere, Ozzi, 2008/01/14
- Re: [Chicken-users] Adding (system->string) somewhere, Kon Lovett, 2008/01/14
- Re: [Chicken-users] Adding (system->string) somewhere, Zbigniew, 2008/01/14
- Re: [Chicken-users] Adding (system->string) somewhere, Elf, 2008/01/14
- Re: [Chicken-users] Adding (system->string) somewhere, Tobia, 2008/01/15
- Re: [Chicken-users] Adding (system->string) somewhere, Zbigniew, 2008/01/15
- Re: [Chicken-users] Adding (system->string) somewhere, Kon Lovett, 2008/01/15
- Re: [Chicken-users] Adding (system->string) somewhere, Zbigniew, 2008/01/15
- Re: [Chicken-users] Adding (system->string) somewhere, Kon Lovett, 2008/01/15
Re: [Chicken-users] Adding (system->string) somewhere, Zbigniew, 2008/01/14