chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] capture command output


From: Jinsong Liang
Subject: Re: [Chicken-users] capture command output
Date: Wed, 10 Jul 2013 11:10:47 -0400

That works! Thanks a lot!

Jinsong


On Wed, Jul 10, 2013 at 11:03 AM, Christian Kellermann <address@hidden> wrote:
Hi Jinsong!

* Jinsong Liang <address@hidden> [130710 16:54]:
> Sorry if this is a question answered before.
>
> How can I capture the output of a shell command?

You can use with-input-from-pipe from the posix unit:

(use posix)

(with-input-from-pipe "ls" read-lines)

HTH,

Christian

--
In the world, there is nothing more submissive and weak than
water. Yet for attacking that which is hard and strong, nothing can
surpass it. --- Lao Tzu


reply via email to

[Prev in Thread] Current Thread [Next in Thread]