Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Execute a command, redirect stderr into stdout, and return the combined result (optionally, with a timeout).
Documentation
readCommand :: FilePath -> [String] -> IO (ProcessID, IO String) Source #
readCommand command args
: given a command to run in a subprocess,
and args to pass to it --
return the childPid of the subprocess, and a function for
reading its output.
if it doesn't start with a forward-slash, the command is searched for in the current path.