unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* pipelines
@ 2009-03-28 12:53 Marijn Schouten (hkBst)
  2009-03-29  6:24 ` pipelines Andy Wingo
  2009-03-31 22:56 ` pipelines Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Marijn Schouten (hkBst) @ 2009-03-28 12:53 UTC (permalink / raw)
  To: guile-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

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))))))

Marijn

- --
Gods do not want you to think, lest they lose existence.
Religions do not want you to think, lest they lose power.

Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknOHckACgkQp/VmCx0OL2z2TQCgxPDaJTts5+myLJ1VlGofpFp8
FXsAnAzXQwMZAhoRacjgNr+G+u56WJ2h
=Z8GH
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-31 22:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28 12:53 pipelines Marijn Schouten (hkBst)
2009-03-29  6:24 ` pipelines Andy Wingo
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

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).