Async_shellWARNING: The use of this library in new projects is discouraged; consider using Async.Process instead. This library has some gotchas, such as being unable to return the full output of a command (see the ?tail_len argument to Low_level_process.run).
The functions in here are straightforward in_thread wrappers of Shell (lib/shell/src/shell.mli) functions.
Child processes will not exit when the parent process exits. If you want the child processes to terminate, you need to arrange it explicitly, e.g. by sending a signal, or closing a pipe, or sending an explicit message.
module Process : sig ... endtype 'a with_process_flags = 'a Shell.with_process_flagstype 'a with_run_flags = 'a Shell.with_run_flagstype 'a with_test_flags = 'a Shell.with_test_flagstype 'a with_ssh_flags = 'a Shell.with_ssh_flagstype 'a with_sh_flags = 'a Shell.with_sh_flagstype 'a cmd = 'a Shell.cmdtype ('a, 'ret) sh_cmd = ('a, 'ret) Shell.sh_cmdval test : bool Async.Deferred.t cmd with_test_flagsval sh_test : ('a, bool Async.Deferred.t) sh_cmd with_test_flags with_sh_flagsval ssh_test :
('a, bool Async.Deferred.t) sh_cmd with_test_flags with_ssh_flagsval run : unit Async.Deferred.t cmd with_run_flagsval run_lines : ?eol:char -> string list Async.Deferred.t cmd with_run_flagsval run_one_line :
?eol:char ->
string Core.Or_error.t Async.Deferred.t cmd with_run_flagsval run_one_line_exn : ?eol:char -> string Async.Deferred.t cmd with_run_flagsval run_first_line :
?eol:char ->
string option Async.Deferred.t cmd with_run_flagsval run_first_line_exn :
?eol:char ->
string Async.Deferred.t cmd with_run_flagsval run_full : string Async.Deferred.t cmd with_run_flagsval run_full_and_error : (string * string) Async.Deferred.t cmd with_run_flagsval run_lines_stream : string Async.Stream.t cmd with_run_flagsval sh : ('a, unit Async.Deferred.t) sh_cmd with_run_flags with_sh_flagsval sh_lines :
('a, string list Async.Deferred.t) sh_cmd with_run_flags with_sh_flagsval sh_one_line :
('a, string Core.Or_error.t Async.Deferred.t) sh_cmd with_run_flags
with_sh_flagsval sh_one_line_exn :
('a, string Async.Deferred.t) sh_cmd with_run_flags with_sh_flagsval sh_first_line :
('a, string option Async.Deferred.t) sh_cmd with_run_flags with_sh_flagsval sh_first_line_exn :
('a, string Async.Deferred.t) sh_cmd with_run_flags with_sh_flagsval sh_full : ('a, string Async.Deferred.t) sh_cmd with_run_flags with_sh_flagsval sh_full_and_error :
('a, (string * string) Async.Deferred.t) sh_cmd with_run_flags with_sh_flagsval sh_lines_stream :
('a, string Async.Stream.t) sh_cmd with_run_flags with_sh_flagsval ssh : ('a, unit Async.Deferred.t) sh_cmd with_run_flags with_ssh_flagsval ssh_lines :
('a, string list Async.Deferred.t) sh_cmd with_run_flags with_ssh_flagsval ssh_one_line :
('a, string Core.Or_error.t Async.Deferred.t) sh_cmd with_run_flags
with_ssh_flagsval ssh_one_line_exn :
('a, string Async.Deferred.t) sh_cmd with_run_flags with_ssh_flagsval ssh_first_line :
('a, string option Async.Deferred.t) sh_cmd with_run_flags with_ssh_flagsval ssh_first_line_exn :
('a, string Async.Deferred.t) sh_cmd with_run_flags with_ssh_flagsval ssh_lines_stream :
('a, string Async.Stream.t) sh_cmd with_run_flags with_ssh_flagsval ssh_full :
('a, string Async.Deferred.t) sh_cmd with_run_flags with_ssh_flagsval ssh_full_and_error :
('a, (string * string) Async.Deferred.t) sh_cmd with_run_flags with_ssh_flagsval mkdir : ?p:unit -> ?perm:int -> string -> unit Async.Deferred.tval scp :
?compress:bool ->
?recurse:bool ->
?user:string ->
host:string ->
string ->
string ->
unit Async.Deferred.t