From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tobias Reithmaier Newsgroups: gmane.lisp.guile.devel Subject: fork pipe dup2 exec Date: Wed, 17 Aug 2016 13:35:50 +0000 (UTC) Message-ID: <630665159.26184630.1471440950603.JavaMail.yahoo@mail.yahoo.com> References: <630665159.26184630.1471440950603.JavaMail.yahoo.ref@mail.yahoo.com> Reply-To: Tobias Reithmaier NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26184629_74650021.1471440950599" X-Trace: blaine.gmane.org 1471440982 29295 195.159.176.226 (17 Aug 2016 13:36:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2016 13:36:22 +0000 (UTC) To: Guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Aug 17 15:36:18 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 1ba110-0007Rc-7A for guile-devel@m.gmane.org; Wed, 17 Aug 2016 15:36:18 +0200 Original-Received: from localhost ([::1]:47548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba10w-0007Iv-T4 for guile-devel@m.gmane.org; Wed, 17 Aug 2016 09:36:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba10h-0007Io-8Q for guile-devel@gnu.org; Wed, 17 Aug 2016 09:36:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ba10b-0003XP-97 for guile-devel@gnu.org; Wed, 17 Aug 2016 09:35:58 -0400 Original-Received: from nm24-vm5.bullet.mail.ir2.yahoo.com ([212.82.97.29]:45788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba10a-0003XD-U4 for guile-devel@gnu.org; Wed, 17 Aug 2016 09:35:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1471440951; bh=vRgcPkohWjZoljUcjoLeWJp+ooypTUI2Iv5CfV/mXRs=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=VODaZbI7RNBZ+/KyexlOjhsg90jFDsiDsFwXUpmJI4rVzFQGCuIiIXBSqF83fNmh96DOUt1E4msiyEL02X62RfGMeP2Siw+rN1INVLSMQE11pZhoZ1NVvgFkvM6DbKlNLbM3RwATPNJA+dm3ocHVUnDbVqhQ5Y4ByjPPp61YiCfYhD4jhjbEmfgKDG7iFvDHJA8kWdisoYr86g23APg5XoD4314pAvJh31IT9K0iZTHq8Vp2tH6fn15x8jGXWErspJSoZ9VW8Si5Ienh60kxosLRZt5qa/vrlSVYr8bgLoYMhvxoq8Crrn2SYj/jUTJcPb9LOAjY5u1XTCCaraw8cg== Original-Received: from [212.82.98.49] by nm24.bullet.mail.ir2.yahoo.com with NNFMP; 17 Aug 2016 13:35:51 -0000 Original-Received: from [212.82.98.90] by tm2.bullet.mail.ir2.yahoo.com with NNFMP; 17 Aug 2016 13:35:51 -0000 Original-Received: from [127.0.0.1] by omp1027.mail.ir2.yahoo.com with NNFMP; 17 Aug 2016 13:35:51 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 419727.26216.bm@omp1027.mail.ir2.yahoo.com X-YMail-OSG: MniccW0VM1mMOCFb9xgFhfe7iKuT.CCQd1da_ZmIdWlHgyDbq8mwP17UuQh8ssH Hw_kmzFi3lhHgjqIl_v79gqTymCS2FbeQf5WivnoGawT8A2TZ2KRFGumEqt_yjkBhGsoqUcuGKDF P8fzQMAzZYQA.sGSbR9clF1RW4dS6i_wmTlUaltfW8YfrP7HJfVJE6r3PgufZoQ7dAZY99rovUU7 yJtcVRBJtnTdg4xZz7xNnsUJypwB2Ny3Ekbca0iPXkPzfYIdGo0Y5q0K_CRdf9Nrv.GE5S5Wgc5e IHjGNrbDqLLVzWboPhSn2OlE9yLD_zVAMh3Cbs381QhENwoIW4_SV.sgRliY7flQGsSraKN5ydiZ gYEnrMKmd9JSIx5_XLmJs2JU41XC2GBvpHfvynrGencglG74prhC_naXf21dNj9hGfom7nuQaSTK 84ehlEk81KIWc9nuUAv3kj7m6T8Q8mfkVXVUnvv3pVE8BZ0RWyoybmtDwX46cOs40cyPpoBoxYSN 0XSW2hU79AXnVwDl8Kwdumg-- Original-Received: from jws11158.mail.ir2.yahoo.com by sendmailws162.mail.ir2.yahoo.com; Wed, 17 Aug 2016 13:35:50 +0000; 1471440950.896 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.82.97.29 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:18639 Archived-At: ------=_Part_26184629_74650021.1471440950599 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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? greetings-tobi ------=_Part_26184629_74650021.1471440950599 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

is there a way to= program a Inter Process Communication (IPC) in guile like you do it with t= he Linux-Libc-API with the combo fork, pipe, dup2 and exec?
If you use the popen-mod= ule it's not the same because you have to wait until the program has finish= ed.
But t= here 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 anot= her way?

greetings
-tobi
<= /div> ------=_Part_26184629_74650021.1471440950599--