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: Christian Kellermann
Subject: Re: [Chicken-users] capture command output
Date: Wed, 10 Jul 2013 17:03:21 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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]