From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chris Vine Newsgroups: gmane.lisp.guile.devel Subject: Re: fork pipe dup2 exec Date: Wed, 17 Aug 2016 15:09:28 +0100 Message-ID: <20160817150928.468f78f2@bother.homenet> References: <630665159.26184630.1471440950603.JavaMail.yahoo.ref@mail.yahoo.com> <630665159.26184630.1471440950603.JavaMail.yahoo@mail.yahoo.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1471443000 9887 195.159.176.226 (17 Aug 2016 14:10:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2016 14:10:00 +0000 (UTC) To: Guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Aug 17 16:09:55 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ba1XW-0002AM-0A for guile-devel@m.gmane.org; Wed, 17 Aug 2016 16:09:54 +0200 Original-Received: from localhost ([::1]:47742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba1XW-00036Q-6Q for guile-devel@m.gmane.org; Wed, 17 Aug 2016 10:09:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba1XH-00036H-Gb for guile-devel@gnu.org; Wed, 17 Aug 2016 10:09:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ba1XD-0002Mr-8e for guile-devel@gnu.org; Wed, 17 Aug 2016 10:09:38 -0400 Original-Received: from smtpout4.wanadoo.co.uk ([80.12.242.68]:26560 helo=smtpout.wanadoo.co.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba1XD-0002MN-29 for guile-devel@gnu.org; Wed, 17 Aug 2016 10:09:35 -0400 Original-Received: from bother.homenet ([95.151.180.102]) by mwinf5d53 with ME id YE9U1t0092CxN1303E9UU6; Wed, 17 Aug 2016 16:09:30 +0200 X-ME-Helo: bother.homenet X-ME-Date: Wed, 17 Aug 2016 16:09:30 +0200 X-ME-IP: 95.151.180.102 Original-Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (Postfix) with ESMTP id 5A08612174C for ; Wed, 17 Aug 2016 15:09:28 +0100 (BST) In-Reply-To: X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.68 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18641 Archived-At: On Wed, 17 Aug 2016 09:56:58 -0400 "Thompson, David" wrote: > On Wed, Aug 17, 2016 at 9:35 AM, Tobias Reithmaier > wrote: > > Hello, > > > > is there a way to program a Inter Process Communication (IPC) in > > guile like you do it with the Linux-Libc-API with the combo fork, > > pipe, dup2 and exec? If you use the popen-module it's not the same > > because you have to wait until the program has finished. > > But there are use-cases in that the program doesn't finish. e.g. a > > server which outputs data every minute. > > > > So can i use the popen-module to control such a server with pipes? > > Or is there another way? > > Check out the "POSIX" section of the manual. Fork, dup, and exec are > all available. Tobias might also want to consider the run-with-pipe procedure, and the run-concurrently+ procedure (with tail-call-program), as provided by guile-lib ( http://www.nongnu.org/guile-lib/doc/ref/os.process/ ). Tobias looks as if he has posted to the wrong newsgroup. Follow ups should I think go to guile-user (but I have not set them). Chris