Command
in package
Class used for execute commands in shell.
Table of Contents
- NO_ERRORS = 0
- execute() : string
- Return a string with the stdoutput and stderr for the command executed.
Constants
NO_ERRORS
public
mixed
NO_ERRORS
= 0
Methods
execute()
Return a string with the stdoutput and stderr for the command executed.
public
static execute(string $command[, int &$result_code = self::NO_ERRORS ]) : string
Parameters
- $command : string
- $result_code : int = self::NO_ERRORS
-
[optional] If the return_var argument is present along with the output argument, then the return status of the executed command will be written to this variable.