From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Thompson, David" Newsgroups: gmane.lisp.guile.devel Subject: Re: fork pipe dup2 exec Date: Wed, 17 Aug 2016 09:56:58 -0400 Message-ID: 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=UTF-8 X-Trace: blaine.gmane.org 1471442244 15604 195.159.176.226 (17 Aug 2016 13:57:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2016 13:57:24 +0000 (UTC) Cc: Guile-devel To: Tobias Reithmaier Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Aug 17 15:57:19 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 1ba1LL-0003ix-9m for guile-devel@m.gmane.org; Wed, 17 Aug 2016 15:57:19 +0200 Original-Received: from localhost ([::1]:47666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba1LI-0005TP-Ew for guile-devel@m.gmane.org; Wed, 17 Aug 2016 09:57:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba1L2-0005T9-Cf for guile-devel@gnu.org; Wed, 17 Aug 2016 09:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ba1L1-0008HH-HB for guile-devel@gnu.org; Wed, 17 Aug 2016 09:57:00 -0400 Original-Received: from mail-ua0-x22f.google.com ([2607:f8b0:400c:c08::22f]:34102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba1L1-0008HC-Ab for guile-devel@gnu.org; Wed, 17 Aug 2016 09:56:59 -0400 Original-Received: by mail-ua0-x22f.google.com with SMTP id k90so172681874uak.1 for ; Wed, 17 Aug 2016 06:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=worcester-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BWhVdP1GuVDsgq4lO8WsWW2GmFnChGDbNmQ7Y11dypU=; b=cFrQiodA/8vFIltQYiDJgkrC3lQM6yLf2YsWTL1GP+PEWB5kO2iJQxzQ69fGbYrECV pwPHoFp9pwv05TGWc4PyStDoFa5X4zv5mEc5WgXpU5O1aP/0bEjKIw4QzIp2YiXd8Vjp Rb5q42yu2I3hS5idApGrO1y/QJr4tgKsHyQhFiSKolLjDlXYtp8USq+Y9S0wSgSFb9M+ q2t1C2uvfq9ZyxNz0KhFA0Fe35NiTuCYJRXlVsWkOPvNNeNntUlQyu/dXealrbc8WaAG /7nhgU9q53FrhXptjHIMQUV04a9oHZxRE3xeeP1rN1c9YwCJZWIdQOcqTANbHlytUcUv MSwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BWhVdP1GuVDsgq4lO8WsWW2GmFnChGDbNmQ7Y11dypU=; b=KUdJ3FL8gNfPWR9DYXpEvoTreptJYbWxlxFqxzGTOcQkfIUgh1CjpAv078wh8/IeA8 RMWDKIIGIV5zJi/xZn891+eSHuJYhGQ43bhKxUdnoqspaniNBdeigmG79fYJ2hrSEl+M 6i40PKFFjB/7i4aJVyKI0vQKiwJlRDKsaVgDLTx0IbzgsFvOmJyGXNJdhiZ4dLjV5oev B3l8Cdj+ewCxWi1mF3Cejh/1KPzRZrHkFCeldelspvzKrfZkjuCngXI3230h+L0UtzSe Fa7byizLFWBijXUTV4lhUPEOcl5eII34PUpk9ATGahTN2MdfBBxK3bi/CsiH3m+Iy+Ey IREQ== X-Gm-Message-State: AEkoous6N5c7/ZHWTj7hyUFUUTuzeQow4UEtJ93gia1xU1iP8f0w74fxavVraaHL4McECb8mcnvB6ouXitumZmrE X-Received: by 10.31.6.202 with SMTP id 193mr14491075vkg.53.1471442218662; Wed, 17 Aug 2016 06:56:58 -0700 (PDT) Original-Received: by 10.31.175.130 with HTTP; Wed, 17 Aug 2016 06:56:58 -0700 (PDT) In-Reply-To: <630665159.26184630.1471440950603.JavaMail.yahoo@mail.yahoo.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c08::22f 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:18640 Archived-At: 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. - Dave