[Haskell-cafe] "piping" to system call
marco-oweber at gmx.de
Tue Sep 23 07:55:56 EDT 2008
On Tue, Sep 23, 2008 at 01:37:56PM +0200, Janis Voigtlaender wrote:
> assume I have a program taking input from stdin. How do I call it from
> Haskell while feeding to it a string as input.
Sure, have a look at
rnuInteractiveCommand does would you want
(in,out,err,pId) <- runInteractiveProcess "cat" ...
hPutStrLn "test" in
outContents <- hGetContents out
More information about the Haskell-Cafe