[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pipelines
From: |
Marijn Schouten (hkBst) |
Subject: |
pipelines |
Date: |
Sat, 28 Mar 2009 13:53:30 +0100 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090320) |
-----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-----
- pipelines,
Marijn Schouten (hkBst) <=