package async_shell

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Async_shellSource

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.

Sourcemodule Process : sig ... end
Sourcetype 'a with_process_flags = 'a Shell.with_process_flags
Sourcetype 'a with_run_flags = 'a Shell.with_run_flags
Sourcetype 'a with_test_flags = 'a Shell.with_test_flags
Sourcetype 'a with_ssh_flags = 'a Shell.with_ssh_flags
Sourcetype 'a with_sh_flags = 'a Shell.with_sh_flags
Sourcetype 'a cmd = 'a Shell.cmd
Sourcetype ('a, 'ret) sh_cmd = ('a, 'ret) Shell.sh_cmd
Sourceval run_lines : ?eol:char -> string list Async.Deferred.t cmd with_run_flags
Sourceval run_one_line : ?eol:char -> string Core.Or_error.t Async.Deferred.t cmd with_run_flags
Sourceval run_one_line_exn : ?eol:char -> string Async.Deferred.t cmd with_run_flags
Sourceval run_first_line : ?eol:char -> string option Async.Deferred.t cmd with_run_flags
Sourceval run_first_line_exn : ?eol:char -> string Async.Deferred.t cmd with_run_flags
Sourceval run_full_and_error : (string * string) Async.Deferred.t cmd with_run_flags
Sourceval run_lines_stream : string Async.Stream.t cmd with_run_flags
Sourceval sh_one_line_exn : ('a, string Async.Deferred.t) sh_cmd with_run_flags with_sh_flags
Sourceval sh_first_line : ('a, string option Async.Deferred.t) sh_cmd with_run_flags with_sh_flags
Sourceval sh_first_line_exn : ('a, string Async.Deferred.t) sh_cmd with_run_flags with_sh_flags
Sourceval sh_full_and_error : ('a, (string * string) Async.Deferred.t) sh_cmd with_run_flags with_sh_flags
Sourceval sh_lines_stream : ('a, string Async.Stream.t) sh_cmd with_run_flags with_sh_flags
Sourceval ssh_one_line_exn : ('a, string Async.Deferred.t) sh_cmd with_run_flags with_ssh_flags
Sourceval ssh_first_line : ('a, string option Async.Deferred.t) sh_cmd with_run_flags with_ssh_flags
Sourceval ssh_first_line_exn : ('a, string Async.Deferred.t) sh_cmd with_run_flags with_ssh_flags
Sourceval ssh_lines_stream : ('a, string Async.Stream.t) sh_cmd with_run_flags with_ssh_flags
Sourceval ssh_full_and_error : ('a, (string * string) Async.Deferred.t) sh_cmd with_run_flags with_ssh_flags
Small helper commands
Sourceval mkdir : ?p:unit -> ?perm:int -> string -> unit Async.Deferred.t
Sourceval scp : ?compress:bool -> ?recurse:bool -> ?user:string -> host:string -> string -> string -> unit Async.Deferred.t
OCaml

Innovation. Community. Security.