opensubscriber
   Find in this group all groups
 
Unknown more information…

g : guile-user@gnu.org 15 June 2012 • 1:10AM -0400

getting pipes going
by Johan Hidding

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi everyone,
I'm having difficulties getting (open-pipe ...) to work for me. I
would expect the following code:

(use-modules (ice-9 popen))

(display (with-output-to-string (lambda ()
           (let ((P (open-pipe "cat" OPEN_WRITE)))
             (display "Hello World!\n" P)
             (close-pipe P)))))

to output: Hello World!
But it gives me nothing, using guile-2.0.5. What's going wrong? I
would love to see some examples on how pipes are "supposed to be"
used.
Cheers, Johan


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.