guile-user
[Top][All Lists]
Advanced

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

Re: pipelines


From: Andy Wingo
Subject: Re: pipelines
Date: Sat, 28 Mar 2009 23:24:54 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Hi Marijn,

On Sat 28 Mar 2009 05:53, "Marijn Schouten (hkBst)" <address@hidden> writes:

> how would I construct a pipeline with guile? Currently my best attempt which
> turns to nothing is:
>
> guile> (use-modules (ice-9 popen))
> guile> (with-output-to-port (open-pipe "echo" OPEN_WRITE) (lambda ()
> (with-input-from-port (open-pipe* OPEN_READ "echo" "Hello world") (lambda ()
> (display (readline))))))

What do you mean by "pipeline"? Do you want to spawn off "echo foo |
bar", or write data to "bar", or read data from "echo foo" ?

Andy
-- 
http://wingolog.org/




reply via email to

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