Hi Philip,<br><br>I just asked a question to the list about using runInteractiveCommand. You may find the code useful but will need to either remove the forkIO instruction or synchronize the two threads using a MVar to avoid the concurrency problem I had.<br>
<br>You&#39;ll find the thread here:<br><br>&nbsp;&nbsp;&nbsp; <a href="http://www.haskell.org/pipermail/haskell-cafe/2008-May/042975.html">http://www.haskell.org/pipermail/haskell-cafe/2008-May/042975.html</a><br><br>Regards,<br><br>Olivier.<br>
<br><div class="gmail_quote">On Thu, May 15, 2008 at 3:18 PM, Philip Müller &lt;<a href="mailto:mail@philip.in-aachen.net">mail@philip.in-aachen.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I would like to be able to run a shell command like curl and process the output in my Haskell program, but I couldn&#39;t find anything helpful about it.<br>
<br>
Something like<br>
<br>
main = do<br>
 &nbsp; &nbsp; &nbsp; &nbsp;args &lt;- getArgs<br>
 &nbsp; &nbsp; &nbsp; &nbsp;inp &lt;- exec &quot;curl&quot; args<br>
 &nbsp; &nbsp; &nbsp; &nbsp;putStrLn (processInput inp)<br>
<br>
would be very helpful.<br>
<br>
Regards<br>
Philip<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br>