This module provides an API for executing shell commands and spawning child processes.
These operations will spawn a sub-process and wait for it to exit.
Execute file with args and wait until it exits.
execFile "path/to/file" [ "arg1", "arg2" ]
Sub-Process exit data.
Make program fail if the status code is not zero.
Also unpacks stdOut and stdErr as IO <stdErr> <stdOut>
.
exec "whoami"
|> failOnError
|> IO.andThen
(\usename ->
IO.printLn ("Hello, " ++ username)
)
Spawn a child process without blocking.
spawn cmd args
Posix signal
Execute a shell command and wait until it exits.
exec "ls -l"