[Haskell-cafe] Execution of external command

Yitzchak Gale gale at sefer.org
Thu Dec 13 08:06:10 EST 2007

Hi Bulat,

You wrote:
> please help me with selection of proper function to use
> i need to run external command with parameter and get its stdout, smth
> like this:
> output <- system "cmd param"
> the code should be compatible with unix and windows, and it should be
> possible to execute scripts (so afaiu it should execute command via
> cmd/sh). i use ghc 6.6.1 and it will be great if this function will
> not require any non-bundled libs and be compatible with later ghc
> versions

OK, I'll bite. What's wrong with runInteractiveCommand?


More information about the Haskell-Cafe mailing list