[Haskell-cafe] Re: Execution of external command
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Thu Dec 13 13:09:31 EST 2007
On Dec 13, 2007, at 13:07 , Yitzchak Gale wrote:
> (_,h,e,_) <- runInteractiveCommand "script params"
> output <- hGetContents h
> where clearStderr is one of:
> 1. hClose e
> 2. hGetContents e >>= evaluate . last
> 3. forkIO (hGetContents e >>= evaluate . last >> return ())
> all seem to work for me on Mac OS. Only 2 hangs on
> Debian testing. What happens on Windows?
PIPE_MAX is only 512 on (older?) Solaris. It's fairly large on Linux
and possibly OSX. No clue about Windows.
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe