module Process: sig
.. end
Process dispatching
type
status = [ `Exited of int
| `Signaled of Core.Signal.t
| `Stopped of Core.Signal.t
| `Timeout of Core.Std.Time.Span.t ]
The termination status of a process.
This is an extension of Unix.Process_status.t
to allow timeouts.
type
t
type
result = {
|
command : t ; |
|
status : status ; |
|
stdout : string ; |
|
stderr : string ; |
}
exception Failed of result
val to_string : t -> string
val status_to_string : status -> string
val format_failed : result -> string
val cmd : string -> string list -> t
val shell : string -> t
val remote : ?user:string -> host:string -> t -> t
type 'a
reader
val content : string reader
val discard : unit reader
val lines : string list reader
val head : string reader
val run : ?timeout:Core.Std.Time.Span.t option ->
?working_dir:string ->
?expect:int list ->
?verbose:bool ->
?echo:bool ->
?input:string -> t -> 'a reader -> 'a
val test : ?timeout:Core.Std.Time.Span.t option ->
?working_dir:string ->
?verbose:bool ->
?echo:bool ->
?input:string ->
?true_v:int list -> ?false_v:int list -> t -> bool