module Process:Process dispatchingsig..end
typestatus =[ `Exited of int
| `Signaled of Core.Signal.t
| `Stopped of Core.Signal.t
| `Timeout of Core.Std.Time.Span.t ]
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 : |
(* | Shell scripting in OCaml.
This module contains basic blocks for shell scripting in OCaml. It tends to be
much safer than just using | *) |
|
status : |
(* | Shell scripting in OCaml.
This module contains basic blocks for shell scripting in OCaml. It tends to be
much safer than just using | *) |
|
stdout : |
(* | Shell scripting in OCaml.
This module contains basic blocks for shell scripting in OCaml. It tends to be
much safer than just using | *) |
|
stderr : |
(* | Shell scripting in OCaml.
This module contains basic blocks for shell scripting in OCaml. It tends to be
much safer than just using | *) |
exception Failed of result
val to_string : t -> stringval status_to_string : status -> stringval format_failed : result -> stringval cmd : string -> string list -> tval shell : string -> tval remote : ?user:string -> host:string -> t -> ttype 'a reader
val content : string readerval discard : unit readerval lines : string list readerval head : string readerval run : ?timeout:Core.Std.Time.Span.t option ->
?working_dir:string ->
?expect:int list ->
?verbose:bool ->
?echo:bool ->
?input:string -> t -> 'a reader -> 'aval 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