Module Imandrakit_io.Popen

Run sub-processes.

This gives more control than the equivalent Unix APIs.

type state
type t = private {
  1. stdin : out_channel;
  2. stdout : in_channel;
  3. stderr : in_channel;
  4. pid : int;
  5. _st : state;
}

A sub-process

val run : ?env:string array -> string -> string list -> t

Run subprocess with given command

val run_shell : ?env:string array -> string -> t

Run subprocess with given command

val res_code : t -> int Moonpool.Fut.t
val wait : t -> int
val kill : t -> unit
val signal : t -> int -> unit