V1.Process
Execute external programs.
run t prog args
runs prog
with arguments args
and returns its exit status together with the content of stdout and stderr. The action is logged.
val run_capture_exn : t -> ?dir:string -> ?env:string list ->
string -> string list -> string
run_capture_exn t prog args
same as run t prog args
but returns stdout
and die
if the error code is nonzero or there is some output on stderr
.
val run_ok : t -> ?dir:string -> ?env:string list -> string -> string list -> bool
run_ok t prog args
same as run t prog args
but only cares whether the execution terminated successfully (i.e., returned an error code of 0
).