unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: "Marijn Schouten \(hkBst\)" <hkBst@gentoo.org>
Cc: guile-user@gnu.org
Subject: Re: pipelines
Date: Sat, 28 Mar 2009 23:24:54 -0700	[thread overview]
Message-ID: <m3r60gq215.fsf@pobox.com> (raw)
In-Reply-To: <49CE1DCA.8070604@gentoo.org> (Marijn Schouten's message of "Sat, 28 Mar 2009 13:53:30 +0100")

Hi Marijn,

On Sat 28 Mar 2009 05:53, "Marijn Schouten (hkBst)" <hkBst@gentoo.org> 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	other threads:[~2009-03-29  6:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-28 12:53 pipelines Marijn Schouten (hkBst)
2009-03-29  6:24 ` Andy Wingo [this message]
2009-03-30  9:26   ` pipelines Marijn Schouten (hkBst)
2009-03-30 19:00     ` pipelines Neil Jerram
2009-03-31 22:56 ` pipelines Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3r60gq215.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=guile-user@gnu.org \
    --cc=hkBst@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).