sig
exception Subprocess_error of (string * Unix.process_status) list
type producer
type consumer
type assignment
val command :
?cmdname:string ->
?arguments:string array ->
?chdir:string ->
?environment:Shell_sys.environment ->
?descriptors:Unix.file_descr list ->
?assignments:Shell.assignment list -> string -> Shell_sys.command
val cmd :
?cmdname:string ->
?chdir:string ->
?environment:Shell_sys.environment ->
?descriptors:Unix.file_descr list ->
?assignments:Shell.assignment list ->
string -> string list -> Shell_sys.command
val call :
?ignore_error_code:bool ->
?mode:Shell_sys.group_mode ->
?stdin:Shell.producer ->
?stdout:Shell.consumer ->
?stderr:Shell.consumer -> Shell_sys.command list -> unit
val setup_job :
?stdin:Shell.producer ->
?stdout:Shell.consumer ->
?stderr:Shell.consumer ->
Shell_sys.command list -> Shell_sys.job * Unix.file_descr list
val postprocess_job :
?ignore_error_code:bool -> Shell_sys.job_instance -> unit
val assign :
src:Unix.file_descr -> target:Unix.file_descr -> Shell.assignment
val ( >& ) : Unix.file_descr -> Unix.file_descr -> Shell.assignment
val ( <& ) : Unix.file_descr -> Unix.file_descr -> Shell.assignment
val assigned_pair : Shell.assignment -> Unix.file_descr * Unix.file_descr
val stdin : Unix.file_descr
val stdout : Unix.file_descr
val stderr : Unix.file_descr
val from_string :
?pos:int -> ?len:int -> ?epipe:(unit -> unit) -> string -> Shell.producer
val from_stream :
?epipe:(unit -> unit) -> string Stdlib.Stream.t -> Shell.producer
val from_function :
producer:(Unix.file_descr -> bool) -> unit -> Shell.producer
val from_file : string -> Shell.producer
val from_fd : Unix.file_descr -> Shell.producer
val from_dev_null : Shell.producer
val to_buffer : Stdlib.Buffer.t -> Shell.consumer
val to_function :
consumer:(Unix.file_descr -> bool) -> unit -> Shell.consumer
val to_file : ?append:bool -> string -> Shell.consumer
val to_fd : Unix.file_descr -> Shell.consumer
val to_dev_null : Shell.consumer
end