[gambit-list] How to do pipe?

Marc Feeley feeley at iro.umontreal.ca
Tue Jun 16 15:05:20 EDT 2009

On 16-Jun-09, at 2:48 PM, Lam Luu wrote:

>> > (with-input-from-process "date" read-line)
>> "Tue Jun 16 12:02:21 EDT 2009"
>> Marc
> So, for now, what can I do?

Upgrade to the latest patches on the repository ("make update").  You  
could also define:

(define (with-input-from-process path-or-settings thunk)
   (let ((p (open-process path-or-settings)))
     (parameterize ((current-input-port p))
       (let ((result (thunk)))
         (process-status p)
         (close-port p)


More information about the Gambit-list mailing list