|
CInbox (Common-Inbox)
0.1
Common functionality for ingesting files for archiving.
|
Public Member Functions | |
| getExitCode () | |
| getLastOutput () | |
| getLastCommand () | |
| executeBlindly ($command) | |
| execute2 ($command) | |
| execute ($command) | |
Public Attributes | |
| const | EC_OK = 0 |
Protected Attributes | |
| $exitCode = null | |
| $lastCmd = null | |
| $lastOutput = null | |
Provides a simple handler for executing external commands. Supports returning the exit code and text output of the externally called command.
| CIExec::execute | ( | $ | command | ) |
Wrapper to default-execution method.
| CIExec::execute2 | ( | $ | command | ) |
This uses "exec()" to call $command.
| CIExec::executeBlindly | ( | $ | command | ) |
This is a quick-n-dirty solution for calling an external command, but without wanting to handle its output/feedback/etc.
It returns the exit code of the $command: Usually 0 is good - and non-zero means error.
Returns the exit code of the last command executed.
Returns the commandline string that was last executed.
Return the output of the last command (as array).
1.7.6.1