[Haskell-cafe] Execution of external command
Bulat Ziganshin
bulat.ziganshin at gmail.com
Thu Dec 13 08:42:32 EST 2007
Hello Yitzchak,
Thursday, December 13, 2007, 4:36:48 PM, you wrote:
>> 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
am i correctly understand that i don't need to waitForProcess and,
if script behaves correctly, hGetContents will read its whole output?
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list