[Haskell-cafe] best runProcess solution to work with windows and linux

Philip Weaver philip.weaver at gmail.com
Wed Aug 27 10:47:53 EDT 2008


On Wed, Aug 27, 2008 at 5:40 AM, Andrew U. Frank <frank at geoinfo.tuwien.ac.at
> wrote:

> i use System.POSIX.IO to run a process and access the handles (after due
> transformation) to get the values back.
> this solution is unfortunately not portable and works only on unix (or
> cygwin) but not for plain windows. there seems to be a somewhat
> comparable package in system.win32.process.
> is there a solution independent of OS? what is the best approach to use
> to run a process and read the result back which works in both unix and
> windows?
>


The System.Process module works well on both unix and windows:

http://hackage.haskell.org/packages/archive/process/1.0.0.0/doc/html/System-Process.html


>
> any suggestion highly appreciated!
>
> andrew
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080827/88af2cf3/attachment.htm


More information about the Haskell-Cafe mailing list