Zymba Documentation
IO.Process
Text
object @IO.Process(@Base) {
construct(string $command, string $path, ?object $environment) {}
close(): int {}
exit() {}
getCommand(): string {}
getExitCode(): int {}
getProcessID(): int {}
isRunning(): bool {}
selectErrorStream(): object {}
selectInputStream(): object {}
selectOutputStream(): object {}
terminate(int $signal): bool {}
toString(): string {}
}
IO process prototype.
Prototype
Methods
Opens a process by executing a specific command.
CODE
$this.construct(string $command, string $path, ?object $environment): void
Parameters
| Name | Type | Value | Default |
|---|---|---|---|
| command | string | "" | |
| path | string | "" | |
| environment | ?object | inherited |
Closes this process, frees its associated resources and returns its exit code.
CODE
$this.close(): int
Returns
| Type | Value |
|---|---|
int |
Closes this process and frees its associated resources for the purpose of contextualization.
CODE
$this.exit(): void
Selects the error stream of this process.
CODE
$this.selectErrorStream(): @IO.Stream
Returns
| Type | Value |
|---|---|
@IO.Stream |
Selects the input stream of this process.
CODE
$this.selectInputStream(): @IO.Stream
Returns
| Type | Value |
|---|---|
@IO.Stream |
Selects the output stream of this process.
CODE
$this.selectOutputStream(): @IO.Stream
Returns
| Type | Value |
|---|---|
@IO.Stream |
Converts this process to a string by returning the command that created it.
CODE
$this.toString(): string
Returns
| Type | Value |
|---|---|
string |