Module Shell.Process


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 ]
Shell scripting in OCaml.

This module contains basic blocks for shell scripting in OCaml. It tends to be much safer than just using Unix.system because it handles errors much more transparently. WARNING: it's undergoing some serious changes internally, then next public release of core should have the changes included

type t 

type result = {
   command : t; (*Shell scripting in OCaml.

This module contains basic blocks for shell scripting in OCaml. It tends to be much safer than just using Unix.system because it handles errors much more transparently. WARNING: it's undergoing some serious changes internally, then next public release of core should have the changes included

*)
   status : status; (*Shell scripting in OCaml.

This module contains basic blocks for shell scripting in OCaml. It tends to be much safer than just using Unix.system because it handles errors much more transparently. WARNING: it's undergoing some serious changes internally, then next public release of core should have the changes included

*)
   stdout : string; (*Shell scripting in OCaml.

This module contains basic blocks for shell scripting in OCaml. It tends to be much safer than just using Unix.system because it handles errors much more transparently. WARNING: it's undergoing some serious changes internally, then next public release of core should have the changes included

*)
   stderr : string; (*Shell scripting in OCaml.

This module contains basic blocks for shell scripting in OCaml. It tends to be much safer than just using Unix.system because it handles errors much more transparently. WARNING: it's undergoing some serious changes internally, then next public release of core should have the changes included

*)
}
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