From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Allan Webber Newsgroups: gmane.lisp.guile.user Subject: Re: Pipes and processes, stdin, stdout and stderr Date: Thu, 16 Apr 2015 10:34:32 -0500 Message-ID: <87sic0w0ew.fsf@earlgrey.lan> References: <873842yahs.fsf@earlgrey.lan> <87r3rlul4p.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429198554 22403 80.91.229.3 (16 Apr 2015 15:35:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Apr 2015 15:35:54 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Apr 16 17:35:50 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YilpW-0000B0-3K for guile-user@m.gmane.org; Thu, 16 Apr 2015 17:35:50 +0200 Original-Received: from localhost ([::1]:37426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YilpV-00040W-Ef for guile-user@m.gmane.org; Thu, 16 Apr 2015 11:35:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yilp5-00040A-4K for guile-user@gnu.org; Thu, 16 Apr 2015 11:35:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yilp2-0002Ug-FF for guile-user@gnu.org; Thu, 16 Apr 2015 11:35:23 -0400 Original-Received: from dustycloud.org ([50.116.34.160]:57862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yilp2-0002UL-BD for guile-user@gnu.org; Thu, 16 Apr 2015 11:35:20 -0400 Original-Received: from earlgrey.lan (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 18B1426600 for ; Thu, 16 Apr 2015 11:35:19 -0400 (EDT) In-reply-to: <87r3rlul4p.fsf@zigzag.favinet> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 50.116.34.160 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11801 Archived-At: Thien-Thi Nguyen writes: > () Christopher Allan Webber > () Mon, 13 Apr 2015 19:17:41 -0500 > > It might be really nice if there was a way to access stdin, > stdout, and stderr as separate ports. I might be willing to > write some code for it, if someone could point me in the > right direction. But I really don't know where to look. > > IIRC, ttn-do (http://www.gnuvola.org/software/ttn-do/) has a > child process module =E2=80=98(ttn-do zzz subprocess)=E2=80=99 that sup= ports > such access. It is not as automagic as =E2=80=98(ice-9 popen)=E2=80=99= , but > maybe that's the right level for you. If you look at the code > of both modules (highly encouraged :-D), you will see a fairly > similar pattern. I think the best way forward is if Someone > migrates the (common) pattern into Guile proper, and exposes it > under a suitably coherent design. > > Too many buzzwords, i know. But i hope you understand anyway. > > Is there a way to do this that I don't know? > > Only you know what you do not know, so who else can answer that? > Next question! :-D Thank you! I'll look at it. Btw, what is ttn-do? I looked through the source and it seems to be a collection of utilities. Is this right? - cwebb