[Haskell-cafe] Execution of external command

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Dec 13 07:48:36 EST 2007

Hello haskell-cafe,

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

Best regards,
 Bulat                          mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list