module Command: sig
.. end
System commands
val full_command : string ->
string array ->
stdin:Unix.file_descr ->
stdout:Unix.file_descr -> stderr:Unix.file_descr -> Unix.process_status
Same arguments as but returns only when
execution is complete.
Raises Sys_error
when a system error occurs
type
process_result =
| |
Not_ready |
| |
Result of Unix.process_status |
val full_command_async : string ->
string array ->
stdin:Unix.file_descr ->
stdout:Unix.file_descr ->
stderr:Unix.file_descr -> unit -> process_result
Same arguments as .
Raises Sys_error
when a system error occurs
Returns a function to call to check if the process execution
is complete.
You must call this function until it returns a Result
to prevent Zombie processes.
val command_async : ?stdout:Buffer.t ->
?stderr:Buffer.t -> string -> string array -> unit -> process_result
Same arguments as .
Raises Sys_error
when a system error occurs
Returns a function to call to check if the process execution
is complete.
You must call this function until it returns a Result
to prevent Zombie processes.
When this function returns a Result, the stdout and stderr of the child
process will be filled into the arguments buffer.
val command : ?stdout:Buffer.t ->
?stderr:Buffer.t -> string -> string array -> Unix.process_status
Same arguments as .
When this function returns, the stdout and stderr of the child
process will be filled into the arguments buffer.
Raises Sys_error
when a system error occurs