[Haskell-cafe] Call external program and get stdout
Roberto Zunino
zunino at di.unipi.it
Fri Nov 23 16:29:08 EST 2007
Allan Clark wrote:
> -- Create the process
> do (_pIn, pOut, pErr, handle) <- runInteractiveCommand command
> -- Wait for the process to finish and store its exit code
> exitCode <- waitForProcess handle
Warning: this will get stuck if the command output is so big that it
fills the SO buffers. This limit is 64K here.
Regards,
Zun.
More information about the Haskell-Cafe
mailing list