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

2008-08-27 Thread Andrew U. Frank
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?

any suggestion highly appreciated!

andrew


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


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

2008-08-27 Thread Philip Weaver
On Wed, Aug 27, 2008 at 5:40 AM, Andrew U. Frank [EMAIL PROTECTED]
 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@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

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