From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: Pipes and processes, stdin, stdout and stderr Date: Wed, 15 Apr 2015 23:38:06 +0200 Message-ID: <87r3rlul4p.fsf@zigzag.favinet> References: <873842yahs.fsf@earlgrey.lan> Reply-To: guile-user@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1429135982 11144 80.91.229.3 (15 Apr 2015 22:13:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 22:13:02 +0000 (UTC) To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Apr 16 00:13:01 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 1YiVYL-0005pK-Ck for guile-user@m.gmane.org; Thu, 16 Apr 2015 00:13:01 +0200 Original-Received: from localhost ([::1]:34306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiVYK-0004dj-Dv for guile-user@m.gmane.org; Wed, 15 Apr 2015 18:13:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiVSk-0003ju-Q8 for guile-user@gnu.org; Wed, 15 Apr 2015 18:07:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiVSh-0002Ga-LI for guile-user@gnu.org; Wed, 15 Apr 2015 18:07:14 -0400 Original-Received: from mail.agora-net.com ([67.59.132.6]:59550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiVSh-0002GP-I3 for guile-user@gnu.org; Wed, 15 Apr 2015 18:07:11 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.71) (envelope-from ) id 1YiVSg-0000cE-9g for guile-user@gnu.org; Wed, 15 Apr 2015 18:07:10 -0400 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1YiV1u-0005GB-HE for guile-user@gnu.org; Wed, 15 Apr 2015 23:39:30 +0200 In-Reply-To: <873842yahs.fsf@earlgrey.lan> (Christopher Allan Webber's message of "Mon, 13 Apr 2015 19:17:41 -0500") Original-Lines: 32 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-From-Line: nobody Wed Apr 15 23:38:07 2015 Mail-Followup-To: guile-user@gnu.org X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ttn@gnuvola.org X-SA-Exim-Scanned: No (on mail.agora-net.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 67.59.132.6 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:11799 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () 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 supports 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 =2D-=20 Thien-Thi Nguyen ----------------------------------------------- (if you're human and you know it) read my lisp: (defun responsep (type via) (case type (technical (eq 'mailing-list via)) ...)) =2D--------------------------------------------- GPG key: 4C807502 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlUu2okACgkQZwMiJEyAdQIoagCeMb3NOqQSIMT840y8arhuSZJG nS4AoITtBznyrvsrS23S3u82vPbQLEf3 =remY -----END PGP SIGNATURE----- --=-=-=--