chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] with-pipe in POSIX


From: felix winkelmann
Subject: Re: [Chicken-users] with-pipe in POSIX
Date: Tue, 1 Mar 2005 07:19:30 +0100

On Mon, 28 Feb 2005 22:39:36 -0500, Alejandro Forero Cuervo
<address@hidden> wrote:
> 
> Shouldn't a with-pipe function be included (specially since
> with-input-from-pipe and with-output-to-pipe are) in the POSIX unix?
> 

There is `create-pipe', which is just a low-level procedure that
directly maps to the POSIX `pipe' call.

But what you probably want is `process' (also in the posix unit):

#;1> (define-values (i o pid) (process "wish"))
#;2> (write-line "puts abc" o)
#;3> (read-line i)
"abc"

(close both ports to terminate the connection and wait for
the subprocess to terminate)


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]