[gambit-list] open-process

Marc Feeley feeley at iro.umontreal.ca
Sun Apr 26 10:07:04 EDT 2009


On 25-Apr-09, at 10:21 PM, lowly coder wrote:

> After reading 17.7.2 of the gambit documentation, I see that
>
> (define p (open-process ...))
>
> will give me an input-output port where I can write to the process  
> and read from the process.
>
> However, how do I wait to see when this process has ended?
>
> Thanks!


Try "process-status":

 > (time (let ((p (open-process '(path: "sleep" arguments: ("3")))))  
(process-status p)))
(time (let ((p (open-process '(path: "sleep" arguments: ("3")))))  
(process-status p)))
     3191 ms real time
     4 ms cpu time (2 user, 2 system)
     1 collection accounting for 1 ms real time (1 user, 0 system)
     16628 bytes allocated
     no minor faults
     no major faults
0




More information about the Gambit-list mailing list