Home » System » System_Command
PEAR::System_Command is a commandline execution interface.
This package is unmaintained.
Download latest release 1.0.8 (there is a newer Composer installable version)
License: PHP License
Description
System_Command is a commandline execution interface. Running functions from the commandline can be risky if the proper precautions are not taken to escape the shell arguments and reaping the exit status properly. This class provides a formal interface to both, so that you can run a system command as comfortably as you would run a php function, with full pear error handling as results on failure. It is important to note that this class, unlike other implementations, distinguishes between output to stderr and output to stdout. It also reports the exit status of the command. So in every sense of the word, it gives php shell capabilities.
Maintainers
- Craig Constantine (cconstantine) — lead, active
Dependencies
Required
- PHP (>= 4.0.0)
- PEAR Installer (>= 1.4.0b1)
- windows (os)
Releases
- 1.0.8 (stable, 2012-02-15)
Release notes
License: PHP License
QA release
Request #14860 New option: AUTORESET - 1.0.7 (stable, 2010-10-25)
Release notes
License: PHP License
Automatically built QA release
Bug #10781 tmpDir not being set correctly by construtor - cconstantineBug #14836 Wrong category ? - cweiske
- 1.0.6 (stable, 2007-04-20)
- 1.0.5 (stable, 2006-03-14)
Release notes
License: PHP License
- fix #6268 execute() raises SYSTEM_COMMAND_STDERR error when command exits non-zero
- 1.0.4 (stable, 2006-01-20)
- 1.0.3 (stable, 2005-10-23)
- 1.0.2 (stable, 2005-09-17)
- 1.0.1 (stable, 2004-03-02)
- 1.0 (stable, 2002-06-07)
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #828 | Closed | Bug | 2004-02-21 | Assignment to $this | |
| #899 | Closed | Bug | 2004-02-26 | PEAR QA: improvement for get_class()-usage | |
| #1985 | Closed | Bug | 2004-07-26 | [PATCH] default shell not set | |
| #3435 | Closed | Bug | 2005-02-11 | $_ENV['PATH'] is not always the same case | |
| #3753 | Duplicate | Bug | 2005-03-09 | System_Command fails upon inclusion | |
| #4579 | Closed | Bug | 2005-06-13 | Issue with constructor of Command | |
| #5376 | Closed | Bug | 2005-09-13 | $this redefined | |
| #5754 | Closed | Bug | 2005-10-22 | Can't set options because "empty" instead of "isset" is used | |
| #6199 | Closed | Bug | 2005-12-08 | System_Command::execute() fails if object instantiated without an argument | |
| #6268 | Closed | Bug | 2005-12-16 | execute() raises SYSTEM_COMMAND_STDERR error when command exits non-zero | |
| #6280 | Wont fix | Req | 2005-12-18 | Documentation request | |
| #7121 | Closed | Bug | 1.0.4 | 2006-03-14 | Error produces by a command is not available if sent to the stderr tmpFile |
| #8382 | Duplicate | Req | 1.0.5 | 2006-08-07 | Capturing Stderr & Exit Code |
| #9504 | Verified | Req | 1.0.5 | 2006-11-29 | Allow arrays to be passed to pushCommand as command line arguments |
| #10781 | Closed | Bug | 1.0.5 | 2007-04-19 | tmpDir not being set correctly by construtor |
| #14836 | Closed | Bug | 1.0.6 | 2008-10-20 | Wrong category ? |
| #14837 | Verified | Doc | 1.0.6 | 2008-10-20 | Do not throw exceptions |
| #14855 | Wont fix | Bug | 1.0.6 | 2008-10-23 | execute() doesn't respects STDERR |
| #14860 | Closed | Req | 1.0.6 | 2008-10-24 | New option: AUTORESET |
| #16558 | Open | Req | 1.0.6 | 2009-08-31 | Introduce Timeout |