[Haskell-cafe] Standard output of exec

Daniel Díaz diaz.carrete at gmail.com
Thu Dec 11 20:37:14 UTC 2014

You can also use my process-streaming 
<http://hackage.haskell.org/package/process-streaming> library:

   import System.Process.Streaming
   import qualified Pipes.ByteString as B
   -- collects stdout as a lazy ByteString
   execute (pipeo (fromFold B.toLazyM)) (shell "echo test")

It depends on the pipes ecosystem and some other stuff, however.

some examples.

On Thursday, December 11, 2014 10:11:09 AM UTC+1, Ernesto Rodriguez wrote:
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141211/44091cb1/attachment.html>

More information about the Haskell-Cafe mailing list