Module Pvem_lwt_unix.SYSTEM.Shell

module Shell: sig .. end
Manipulate /bin/sh commands (flavors of Unix.system).

val do_or_fail : string ->
(unit,
[> `Shell of
string *
[> `Exited of int | `Exn of exn | `Signaled of int | `Stopped of int ] ])
Pvem_lwt_unix.Deferred_result.t
Make /bin/sh execute a command, fail if it does not return 0.
val execute : string ->
(string * string * [ `Exited of int | `Signaled of int | `Stopped of int ],
[> `Shell of string * [> `Exn of exn ] ])
Pvem_lwt_unix.Deferred_result.t
Execute a shell command and return its standard output, standard error, and exit code stdout, stderr.
val status_to_string : [< `Exited of int | `Exn of exn | `Signaled of int | `Stopped of int ] ->
string
Convert a status (or an error) to a human-readable string