[Haskell-cafe] Execution of external command
gale at sefer.org
Thu Dec 13 08:36:48 EST 2007
> do (stdin,stdout,stderr,ph) <- runInteractiveCommand "script param"
> waitForProcess ph
> when i should read stdout? before or after waitForProcess?
If you are sure that your script will behave nicely
(or don't care if it doesn't), how about just:
(_, h, _, _) <- runInteractiveCommand "script params"
output <- hGetContents h
More information about the Haskell-Cafe