Class: I2CE Process

From IHRIS Wiki
Revision as of 08:52, 10 November 2009 by Litlfred (talk | contribs)

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