Unixutils-1.47: A crude interface between Haskell and Unix-like operating systems

System.Unix.ProcessStrict

Description

Strict process running

Synopsis

Documentation

simpleProcess :: FilePath -> [String] -> IO (String, String, ExitCode)Source

simpleProcess - run a process returning (stdout, stderr, exitcode)

Warning - stdout and stderr will be read strictly so that we do not deadlock when trying to check the exitcode. Do not try doing something like, simpleProcess ["yes"]

NOTE: this may still dead-lock because we first strictly read outStr and then errStr. Perhaps we should use forkIO or something?