[Haskell-cafe] Standard output of exec
neto at netowork.me
Thu Dec 11 13:29:24 UTC 2014
Thank you for your answer. Conduits certainly are the best approach, but
the output I am going to read is very short and the external program will
only be called once or twice per execution so I think Lazy IO won't be
On Thu, Dec 11, 2014 at 10:18 AM, Michael Snoyman <michael at snoyman.com>
> You can use readProcess, but it has some downsides:
> 1. Can't specify all options to CreateProcess, e.g., working directory and
> environment variables.
> 2. Relies on lazy I/O
> I use Data.Conduit.Process for this kind of thing, which has a full
> tutorial. However, it *does* involve non-base dependencies.
> On Thu Dec 11 2014 at 11:11:12 AM Ernesto Rodriguez <neto at netowork.me>
>> Dear All,
>> I have a program which invokes an external program via exec. I wish to
>> capture the standard output of the program without using external
>> (temporary) files. Is it possible to create an in memory handle which I can
>> tell exec to use as standard output of the invoked program. It would be
>> great if it can be done without any extra dependencies.
>> Ernesto Rodriguez
>> Masters Student
>> Computer Science
>> Utrecht University
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe