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

Safe HaskellSafe-Infered

System.Unix.Process

Description

Variations of the readProcess and readProcessWithExitCode functions from System.Process which read and write ByteStrings and have an extra argument to modify the CreateProcess value before the process is started.

Documentation

readProcessSource

Arguments

:: FilePath

command to run

-> [String]

any arguments

-> (CreateProcess -> CreateProcess)

modifies CreateProcess before passing to createProcess

-> ByteString

standard input

-> IO ByteString

stdout

readProcessWithExitCodeSource

Arguments

:: FilePath

command to run

-> [String]

any arguments

-> (CreateProcess -> CreateProcess)

Modify process with this - use id for System.Process.readProcessWithExitCode behavior

-> ByteString

standard input

-> IO (ExitCode, ByteString, ByteString)

exitcode, stdout, stderr