From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: pipelines Date: Sat, 28 Mar 2009 23:24:54 -0700 Message-ID: References: <49CE1DCA.8070604@gentoo.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238308792 10450 80.91.229.12 (29 Mar 2009 06:39:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Mar 2009 06:39:52 +0000 (UTC) Cc: guile-user@gnu.org To: "Marijn Schouten \(hkBst\)" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Mar 29 08:41:10 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 1Lnohh-0003DK-KS for guile-user@m.gmane.org; Sun, 29 Mar 2009 08:41:09 +0200 Original-Received: from localhost ([127.0.0.1]:32862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnogJ-0002Tg-Vx for guile-user@m.gmane.org; Sun, 29 Mar 2009 02:39:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnogF-0002TD-Be for guile-user@gnu.org; Sun, 29 Mar 2009 02:39:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnogA-0002Na-8X for guile-user@gnu.org; Sun, 29 Mar 2009 02:39:38 -0400 Original-Received: from [199.232.76.173] (port=33610 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lnog9-0002NK-W9 for guile-user@gnu.org; Sun, 29 Mar 2009 02:39:34 -0400 Original-Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25]:39726 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lnog9-0002Yn-Mv for guile-user@gnu.org; Sun, 29 Mar 2009 02:39:33 -0400 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 49412AC69; Sun, 29 Mar 2009 02:39:33 -0400 (EDT) Original-Received: from unquote (unknown [75.84.114.170]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 57ADBAC68; Sun, 29 Mar 2009 02:39:29 -0400 (EDT) In-Reply-To: <49CE1DCA.8070604@gentoo.org> (Marijn Schouten's message of "Sat, 28 Mar 2009 13:53:30 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Pobox-Relay-ID: 5D0C17CA-1C2C-11DE-ADBF-C5D912508E2D-02397024!a-sasl-quonix.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:7186 Archived-At: Hi Marijn, On Sat 28 Mar 2009 05:53, "Marijn Schouten (hkBst)" 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/