Class: I2CE Process (4.1.7)

From IHRIS Wiki


This article describes the class I2CE_Process .

Handles processes.

Variables

$cmd

The command being executed.

$res

Currently executing resource

$pipes

Stdin, Stdout, etc.

$exit

holds the exit code of the program

$done

Flag so that we only execute this once.

Methods

__construct()

Constructor for the I2CE_Process @params string $cmd The full command line to execute.

is_error()

Returns a boolean indicating if an error code occurred. Will run the Process if it hasn't been run.

slurp()

Slurp up the output of the process @params string $cmd The full command line to execute. @todo implement stdin

stderr()

Provides access to what the command spewed out on STDERR

stdout()

Provides access to what the command spewed out on STDOUT