Hi - <br>I am trying to write to a subprocess's stdin (and then to read from its stdout) without much success. I roughly have the form of <br><br> (let-values (((p pout pin perr)<br> (subprocess #f #f #f cmd)))<br>
(write "this is a text" pin)<br> (subprocess-wait p)<br> (parameterize ((current-input-port pout))<br> (lambda ()<br> (read-line))))<br><br>but it doesn't work and I suspect it's due to my misunderstanding of how the port works (and most likely just how to use subprocess, period). The v4 maually mentions "All provided ports must be file-stream ports" - so does that mean I need to first write the output to a file? I found an example on <a href="http://www.cs.brown.edu/pipermail/plt-scheme/2006-February/011953.html">http://www.cs.brown.edu/pipermail/plt-scheme/2006-February/011953.html</a> but couldn't figure out how to adopt it toward my needs.<br>
<br>Any pointers are appreciated, thanks.<br>yc<br><br><br><br>