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: Re: fork pipe dup2 exec Date: Thu, 18 Aug 2016 09:22:50 +0000 (UTC) Message-ID: <118975090.26845571.1471512171002.JavaMail.yahoo@mail.yahoo.com> References: <630665159.26184630.1471440950603.JavaMail.yahoo.ref@mail.yahoo.com> <630665159.26184630.1471440950603.JavaMail.yahoo@mail.yahoo.com> <20160817150928.468f78f2@bother.homenet> Reply-To: Tobias Reithmaier NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26845569_731764894.1471512170997" X-Trace: blaine.gmane.org 1471512202 10137 195.159.176.226 (18 Aug 2016 09:23:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2016 09:23:22 +0000 (UTC) To: Chris Vine , Guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Aug 18 11:23: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 1baJXh-0002Ss-O0 for guile-devel@m.gmane.org; Thu, 18 Aug 2016 11:23:18 +0200 Original-Received: from localhost ([::1]:51517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baJXe-0002F5-MG for guile-devel@m.gmane.org; Thu, 18 Aug 2016 05:23:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baJXN-0002BP-Ef for guile-devel@gnu.org; Thu, 18 Aug 2016 05:22:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1baJXJ-0007Px-24 for guile-devel@gnu.org; Thu, 18 Aug 2016 05:22:56 -0400 Original-Received: from nm40-vm7.bullet.mail.ir2.yahoo.com ([212.82.97.175]:52756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baJXI-0007Pm-Np for guile-devel@gnu.org; Thu, 18 Aug 2016 05:22:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1471512171; bh=Ebbt0ukfU7lyZtJxUeQUVGVxaHg4/qSdKo8k2urgMo8=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=GXMA9Elm6wkSKf/NU1xI8ScImDYLraepek1rHEJNlukgjWpgIq4vmoiFf9SXupAxFySMrynUsB5kCUENV7s+Oisbwxw+RxAwzaLc+mSdTKjhUEcbqnoHQjKrpZ6SJP0e285weq4yJn6CkOn8skZmKGp6qU2P2jTHdUqz6rhPd04ZsDKlmJ5Ix2g44D2Ngm3Y7LDhMvWUShtkV5udAjqPAPM9wx/WCbU+6oI3tFiXVAGzhp/Yv39zrrPtwzwbTw2aRNN2tY6uHKek5IPKFhtp0fLalHf83EBJCtQH6UdVNTBHT4YmNtFTGcfMb/335koLABh4J0PGin9UdyF2lQnkXw== Original-Received: from [212.82.98.51] by nm40.bullet.mail.ir2.yahoo.com with NNFMP; 18 Aug 2016 09:22:51 -0000 Original-Received: from [212.82.98.77] by tm4.bullet.mail.ir2.yahoo.com with NNFMP; 18 Aug 2016 09:22:51 -0000 Original-Received: from [127.0.0.1] by omp1014.mail.ir2.yahoo.com with NNFMP; 18 Aug 2016 09:22:51 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 845148.79399.bm@omp1014.mail.ir2.yahoo.com X-YMail-OSG: yRO6Dj8VM1kKmLQq2LfW_tZoIfUEyX9_jkRGyW3UKRvN6dN0rbwxHMGdJFOKqRG KLIsz1GF.ykbczcrRrVbGArWcUb4dpIlUPT5TmrhjVfCpNfG3yMpOmKBqwvz6wiAjMl0rKX7k2xk iOLy24zetNKOsiUihnsxjKMcR7GDYsj7SOZXmoveoFMc2n_r9au.pkoenpfcxBP8O3UcWbxci4s0 8NeYwcv0_jBlH71e5AXKCEFx0A3bKBb1E5D6pan2icJJsV0DcEeYrgOcBohmAE96yQe7MaagE0tR U6ga1_XcdtOg295WhbA4JH57_S9.cKEQL3w3BW2bgq1DlquNnmx2EtdTgOq86BS8xg2P7A3GxNJn 03xMHh8Fn1IwIqJJ.YQ3dbOsGM67SPnlxQnJIGbX9GA8ab6215BRi15UYZFlDooFWmILaM4E1Cf_ WMpsvRu08DVb5RF7BF5GSNgrL26KiUDZA.dsbziswKFntMM5W5rqU3sXt2JwJgRgBIWHAVGOmEeM rClYwgBTbd8J.N1gU9ajfVCfuIwdk1jdX Original-Received: from jws11128.mail.ir2.yahoo.com by sendmailws106.mail.ir2.yahoo.com; Thu, 18 Aug 2016 09:22:51 +0000; 1471512171.438 In-Reply-To: <20160817150928.468f78f2@bother.homenet> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.82.97.175 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:18642 Archived-At: ------=_Part_26845569_731764894.1471512170997 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you. OH! Sorry! I thought this is the only news-group. I'll ask further question= s in the guile-user news group. @Dave The Systemcall pipe isn't in the posix-module. Maybe it's not require= d. So there are changes it works just with the posix-module. @Chris Thank you for library. I didn't know that. Looks really useful for m= e.=20 Chris Vine schrieb am 16:09 Mittwoch, 17.= August 2016: =20 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?=C2=A0=20 >=20 > 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.=C2=A0 Follow ups should I think go to guile-user (but I have not set them). Chris ------=_Part_26845569_731764894.1471512170997 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you.

OH! Sorry! I thought this= is the only news-group. I'll ask further questions in the guile-user news = group.
@Dave The Systemcall pipe isn't i= n the posix-module. Maybe it's not required. So there are changes it works = just with the posix-module.
@Chris Th= ank you for library. I didn't know that. Looks really useful for me.=


Chris Vine <chris@cvine.freeserve.co.uk> schr= ieb am 16:09 Mittwoch, 17.August 2016:


On Wed, 17 Aug 2016 09:56:58 -0400

"Thompson, David" <dthompson2@worcester.edu> wrote:
> On Wed, Aug 17, 2016 at 9:35 AM, Tobias Reithmaier
> <tobi3489@yahoo.de> 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 c= ombo 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 th= ere 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 "P= OSIX" section of the manual. Fork, dup, and exec are
>= all available.


Tobias might als= o want to consider the run-with-pipe procedure, and the
r= un-concurrently+ procedure (with tail-call-program), as provided by
guile-lib ( http://www.nongnu.org/guile-li= b/doc/ref/os.process/ ).

Tobias lo= oks 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




=
------=_Part_26845569_731764894.1471512170997--