On 2005-04-12, Dimitry Golubovsky <[EMAIL PROTECTED]> wrote:
> Does there exist any analog of popen in the standard Haskell libraries?

Dmitry,

I have one in MissingH, and it's written in pure Haskell.  Reference at
http://quux.org/devel/missingh/html/MissingH.Cmd.html, code at
http://quux.org/devel/missingh.

If you choose to not use that code, and instead write your own, just
know that popen() can be implemented in terms of pipe(), dup(), and
fork() in C -- or createPipe, dupTo, and forkProcess in Haskell.  Take
care to handle SIGCHLD properly -- or, just use my module :-)

-- John

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to