From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Marijn Schouten (hkBst)" Newsgroups: gmane.lisp.guile.user Subject: pipelines Date: Sat, 28 Mar 2009 13:53:30 +0100 Message-ID: <49CE1DCA.8070604@gentoo.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1238300003 29018 80.91.229.12 (29 Mar 2009 04:13:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Mar 2009 04:13:23 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Mar 29 06:14:41 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LnmPq-00079a-CB for guile-user@m.gmane.org; Sun, 29 Mar 2009 06:14:34 +0200 Original-Received: from localhost ([127.0.0.1]:36013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnmOS-0001Fk-T2 for guile-user@m.gmane.org; Sun, 29 Mar 2009 00:13:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnY3D-0000G3-0i for guile-user@gnu.org; Sat, 28 Mar 2009 08:54:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnY38-0000EP-Ei for guile-user@gnu.org; Sat, 28 Mar 2009 08:54:14 -0400 Original-Received: from [199.232.76.173] (port=41335 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnY37-0000EI-WF for guile-user@gnu.org; Sat, 28 Mar 2009 08:54:10 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:60425) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnY37-0000p2-Js for guile-user@gnu.org; Sat, 28 Mar 2009 08:54:09 -0400 Original-Received: from castor.sshunet.nl ([145.97.192.41]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnY36-0002JQ-4U for guile-user@gnu.org; Sat, 28 Mar 2009 08:54:08 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by castor.sshunet.nl (Postfix) with ESMTP id 64F5557C048 for ; Sat, 28 Mar 2009 13:54:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at castor.sshunet.nl Original-Received: from castor.sshunet.nl ([127.0.0.1]) by localhost (castor.sshunet.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vK24ByesNDKp for ; Sat, 28 Mar 2009 13:54:05 +0100 (CET) Original-Received: from [145.97.222.96] (96pc222.sshunet.nl [145.97.222.96]) by castor.sshunet.nl (Postfix) with ESMTP for ; Sat, 28 Mar 2009 13:54:05 +0100 (CET) User-Agent: Thunderbird 2.0.0.21 (X11/20090320) X-Enigmail-Version: 0.95.7 X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sun, 29 Mar 2009 00:13:04 -0400 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7185 Archived-At: -----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 , #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-----