Safe Haskell | None |
---|
Extra functions for creating processes. Specifically variants that automatically check
the ExitCode
and capture the 'stdout'\/'stderr' handles.
- module System.Process
- system_ :: String -> IO ()
- systemOutput :: String -> IO (ExitCode, String)
- systemOutput_ :: String -> IO String
Documentation
module System.Process
system_ :: String -> IO ()Source
A version of system
that throws an error if the ExitCode
is not ExitSuccess
.
systemOutput_ :: String -> IO StringSource
A version of system
that captures the output (both stdout
and stderr
)
and throws an error if the ExitCode
is not ExitSuccess
.