Safe Haskell | None |
---|
- sourceProcess :: MonadResource m => CreateProcess -> Producer m ByteString
- conduitProcess :: MonadResource m => CreateProcess -> Conduit ByteString m ByteString
- sourceCmd :: MonadResource m => String -> Producer m ByteString
- conduitCmd :: MonadResource m => String -> Conduit ByteString m ByteString
- shell :: String -> CreateProcess
- proc :: FilePath -> [String] -> CreateProcess
- data CreateProcess = CreateProcess {}
- data CmdSpec
- data StdStream
- = Inherit
- | UseHandle Handle
- | CreatePipe
- data ProcessHandle
Run process
sourceProcess :: MonadResource m => CreateProcess -> Producer m ByteStringSource
Source of process
conduitProcess :: MonadResource m => CreateProcess -> Conduit ByteString m ByteStringSource
Conduit of process
Run shell command
sourceCmd :: MonadResource m => String -> Producer m ByteStringSource
Source of shell command
conduitCmd :: MonadResource m => String -> Conduit ByteString m ByteStringSource
Conduit of shell command
Convenience re-exports
shell :: String -> CreateProcess
Construct a CreateProcess
record for passing to createProcess
,
representing a command to be passed to the shell.
proc :: FilePath -> [String] -> CreateProcess
Construct a CreateProcess
record for passing to createProcess
,
representing a raw command with arguments.
The FilePath
argument names the executable, and is interpreted according
to the platform's standard policy for searching for
executables. Specifically:
- on Unix systems the
execvp(3)
semantics is used, where if the executable filename does not
contain a slash (
/
) then thePATH
environment variable is searched for the executable. - on Windows systems the Win32
CreateProcess
semantics is used. Briefly: if the filename does not contain a path, then the directory containing the parent executable is searched, followed by the current directory, then some standard locations, and finally the currentPATH
. An.exe
extension is added if the filename does not already have an extension. For full details see the documentation for the WindowsSearchPath
API.
data CreateProcess
CreateProcess | |
|
data CmdSpec
ShellCommand String | a command line to execute using the shell |
RawCommand FilePath [String] | the filename of an executable with a list of arguments.
see |
data StdStream
Inherit | Inherit Handle from parent |
UseHandle Handle | Use the supplied Handle |
CreatePipe | Create a new pipe. The returned
|
data ProcessHandle