mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 15:22:31 +01:00
Update wikipage Process and BaseProcess. (Signed-off-by:alexk).
git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1912 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -9,7 +9,7 @@ The Process library provides solution to execute a command, to control its execu
|
||||
= BaseProcess library =
|
||||
{{Warning|This solution supports all kind of concurrency (none, thread, and SCOOP), but does not yet offer all the functionalities of the previous Process library. It is recommended to use BaseProcess, unless you badly need the missing features.}}
|
||||
|
||||
=== Creation of process handlers ===
|
||||
== Creation of process handlers ==
|
||||
The main interfaces are `BASE_PROCESS_FACTORY` and `BASE_PROCESS`. The factory helps to instantiate a `BASE_PROCESS` object, which is the execution controller. The `BASE_PROCESS` object is used to configure the execution, to launch the execution, and check for the termination. It could also terminate the execution if wanted.
|
||||
|
||||
The factory interface provides 2 useful functions creating a `BASE_PROCESS` object:
|
||||
@@ -17,7 +17,7 @@ The factory interface provides 2 useful functions creating a `BASE_PROCESS` obje
|
||||
* `process_launcher_with_command_line` is similar to `process_launcher`, but takes the full command line, instead of executable filename and arguments.
|
||||
The advantage of `process_launcher` is that you do not have to care about quoting the argument values.
|
||||
|
||||
=== Output redirection ===
|
||||
== Output redirection ==
|
||||
On the `BASE_PROCESS` object, it is possible to configure the execution.
|
||||
* It is possible to redirect the standard and error output, and also the input, for instance:
|
||||
** `redirect_output_to_file (..)` is used to record the execution output in a file
|
||||
@@ -25,7 +25,7 @@ On the `BASE_PROCESS` object, it is possible to configure the execution.
|
||||
** `redirect_input_to_file (..)` is used to take the input from a file.
|
||||
** check other `redirect_*` routines.
|
||||
|
||||
=== Platform-specific settings ===
|
||||
== Platform-specific settings ==
|
||||
There are also platform dependent settings, such as:
|
||||
* Only for Unix
|
||||
** `is_terminal_control_enabled: BOOLEAN`: If True, the launched process will have terminal control over standard input, output and error. (Has effect only when `is_launched_in_new_process_group' is True).
|
||||
@@ -34,7 +34,7 @@ There are also platform dependent settings, such as:
|
||||
** `separate_console: BOOLEAN`: if True, the process will be launched with a new console instead of inheriting parent's console.
|
||||
** `detached_console: BOOLEAN`: if True, the process will be launched without any console ?
|
||||
|
||||
=== Execution control ===
|
||||
== Execution control ==
|
||||
{| class="wikitable" style="width: auto; margin: 0px auto;"
|
||||
|-
|
||||
! style="border-style: solid; text-align: center; font-weight: 500;" ! Feature
|
||||
@@ -53,7 +53,7 @@ There are also platform dependent settings, such as:
|
||||
| `close` || Close handles associated with child process. The process may continue running. If there is any input/output redirection to/from current process, it will be closed.
|
||||
|}
|
||||
|
||||
=== Execution status ===
|
||||
== Execution status ==
|
||||
{| class="wikitable" style="width: auto; margin: 0px auto;"
|
||||
|-
|
||||
! style="border-style: solid; text-align: center; font-weight: 500;" ! Feature
|
||||
|
||||
Reference in New Issue
Block a user