[Haskell-cafe] "piping" to system call

Janis Voigtlaender voigt at tcs.inf.tu-dresden.de
Tue Sep 23 07:58:43 EDT 2008


Marc Weber wrote:
> On Tue, Sep 23, 2008 at 01:37:56PM +0200, Janis Voigtlaender wrote:
> 
>> Hi,
>>
>> 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 
> http://hackage.haskell.org/packages/archive/process/1.0.0.0/doc/html/System-Process.html#v:runInteractiveProcess

Ah, great. Just what I need!

-- 
Dr. Janis Voigtlaender
http://wwwtcs.inf.tu-dresden.de/~voigt/
mailto:voigt at tcs.inf.tu-dresden.de


More information about the Haskell-Cafe mailing list