Safe Haskell | Safe-Infered |
---|
Strict process running
- simpleProcess :: FilePath -> [String] -> IO (String, String, ExitCode)
- processResult :: FilePath -> [String] -> IO (Either Int (String, String))
- processOutput :: FilePath -> [String] -> IO (Either Int String)
- simpleCommand :: String -> IO (String, String, ExitCode)
- commandResult :: String -> IO (Either Int (String, String))
- commandOutput :: String -> IO (Either Int String)
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?