guile-user
[Top][All Lists]
Advanced

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

getting pipes going


From: Johan Hidding
Subject: getting pipes going
Date: Thu, 14 Jun 2012 19:10:05 +0200

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



reply via email to

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