+
Point of view
All features
deferred class PROCESS
Summary
This class allows one to spawn an external process and make it execute some file.
The standard streams of the process are available: input, output and error.
Note: This class is in a beta stage. POSIX and Windows versions are available but there may be resource leaks or other bugs left.
Direct parents
Inherit list: HASHABLE, PROCESS_RUNNER
Known children
Inherit list: PROCESS_NONE, PROCESS_POSIX, PROCESS_WIN32
Overview
Features
{ANY}
{}
{ANY}
{ANY}
  • is_equal (other: PROCESS): BOOLEAN
    Is other attached to an object considered equal to current object?
deferred function
{ANY}
is_child: BOOLEAN
deferred function
{ANY}
is_connected: BOOLEAN
deferred function
{ANY}
is_finished: BOOLEAN
deferred function
{ANY}
status: INTEGER_32
deferred function
{ANY}
wait
deferred procedure
{ANY}
duplicate
deferred procedure
{ANY}
Duplicate the running process so that two processes are running simultaneously with the same code and starting from the same data (inspired from the fork(2) POSIX call)
deferred function
{ANY}
You can feed data to the process by this channel
output: INPUT_STREAM
deferred function
{ANY}
You can read data from the process by this channel
error: INPUT_STREAM
deferred function
{ANY}
You can read error data from the process by this channel
writable attribute
{ANY}
set_group (group_: PROCESS_GROUP)
effective procedure
{ANY}
is_ready: BOOLEAN
effective function
{ANY}
direct_input: BOOLEAN
writable attribute
{ANY}
Is the program's input stream read directly from the standard input stream rather than from input?
set_direct_input (direct_input_: BOOLEAN)
effective procedure
{ANY}
direct_output: BOOLEAN
writable attribute
{ANY}
Is the program's output stream sent directly to the standard output stream rather than to output?
set_direct_output (direct_output_: BOOLEAN)
effective procedure
{ANY}
direct_error: BOOLEAN
writable attribute
{ANY}
Is the program's error stream sent directly to the standard error stream rather than to error?
set_direct_error (direct_error_: BOOLEAN)
effective procedure
{ANY}
hash_code: INTEGER_32
effective function
{ANY}
The hash-code value of Current.
cleanup_streams
effective procedure
{}
execute (program: STRING, arguments: TRAVERSABLE[STRING], keep_environment: BOOLEAN)
deferred procedure
{ANY}
Execute the given program (how the program is discovered is OS-dependent), passing to it the arguments.
execute_command_line (command_line: STRING, keep_environment: BOOLEAN)
deferred procedure
{ANY}
Execute the command_line through the operating system's basic shell.
is_equal (other: PROCESS): BOOLEAN
deferred function
{ANY}
Is other attached to an object considered equal to current object?