[Haskell-cafe] Call external program and get stdout
Allan Clark
a.d.clark at ed.ac.uk
Sat Nov 24 05:03:27 EST 2007
Roberto Zunino wrote:
> 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.
>
Ah thanks for the warning, I've never tested this on anything
particularly large.
regards
allan
More information about the Haskell-Cafe
mailing list