Sys.Process
eff ProcessSourceAn effect used to start a process outside the JVM.
Operations
def execWithCwdAndEnv(cmd: String, args: List[String], cwd: Option[String], env: Map[String, String]): Result[IoError, ProcessHandle] \ Process§ SourceImmediately executes the command cmd with the arguments args, by the path cwd and with the environment env.
Returns the exit value of the process ph.
Returns whether the process ph is alive.
Returns the PID of the process ph.
Returns the stderr stream of the process ph.
Returns the stdin stream of the process ph.
Returns the stdout stream of the process ph.
Waits for the process ph to finish and returns its exit value.
Definitions
Executes the command cmd with the arguments args.
def execWithCwd(cmd: String, args: List[String], cwd: Option[String]): Result[IoError, ProcessHandle] \ Process§ SourceExecutes the command cmd with the arguments args, by the path cwd.
def execWithEnv(cmd: String, args: List[String], env: Map[String, String]): Result[IoError, ProcessHandle] \ Process§ SourceExecutes the command cmd with the arguments args and with the environmental env.
Handles the Process effect of the given function f.
In other words, re-interprets the Process effect using the IO effect.